Module: REST::Error::Connection

Defined in:
lib/rest/error.rb

Overview

This constant can be used to rescue only the known `Connection` error classes.

Class Method Summary collapse

Class Method Details

.class_namesObject


37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/rest/error.rb', line 37

def self.class_names
  %w(
    EOFError
    Errno::ECONNABORTED
    Errno::ECONNREFUSED
    Errno::ECONNRESET
    Errno::EHOSTUNREACH
    Errno::EINVAL
    Errno::ENETUNREACH
    SocketError
    OpenSSL::SSL::SSLError
  )
end