Exception: OCI::Errors::NetworkError

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

Overview

The base error for all network issues (that is, requests that do not reach the server)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ NetworkError

Returns a new instance of NetworkError.



57
58
59
60
# File 'lib/oci/errors.rb', line 57

def initialize(code)
  super 'Request could not be completed due to a network error.'
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Error code, which is mapped to Net::HTTPResponse’s message or exception’s message property



55
56
57
# File 'lib/oci/errors.rb', line 55

def code
  @code
end