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(message, code) ⇒ NetworkError

Returns a new instance of NetworkError.



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

def initialize(message, code)
  super message
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Error code, which is mapped to Net::HTTPResponse’s code.to_i or 0 if the issue was reported by an exception.



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

def code
  @code
end