Exception: HubbleObservatory::ConnectionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hubble_observatory/errors.rb

Overview

Documents the connection errors that can occur

Class Method Summary collapse

Class Method Details

.errorsObject

Possible list of connection errors that can occur


6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hubble_observatory/errors.rb', line 6

def self.errors
  [
    OpenSSL::SSL::SSLError,
    Errno::ETIMEDOUT,
    Errno::EHOSTUNREACH,
    Errno::ENETUNREACH,
    Errno::ECONNRESET,
    Net::OpenTimeout,
    SocketError
  ]
end