Exception: OracleBMC::Errors::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/oraclebmc/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.



40
41
42
43
# File 'lib/oraclebmc/errors.rb', line 40

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 usually a libcurl error code, not an HTTP error code. See www.rubydoc.info/github/typhoeus/ethon/master/Ethon%2FCurls%2FCodes%3Aeasy_codes.



38
39
40
# File 'lib/oraclebmc/errors.rb', line 38

def code
  @code
end