Exception: OracleBMC::Errors::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- OracleBMC::Errors::NetworkError
- 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
-
#code ⇒ Object
readonly
Error code, which is usually a libcurl error code, not an HTTP error code.
Instance Method Summary collapse
-
#initialize(code) ⇒ NetworkError
constructor
A new instance of NetworkError.
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
#code ⇒ Object (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 |