Exception: OCI::Errors::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- OCI::Errors::NetworkError
- 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
-
#code ⇒ Object
readonly
Error code, which is mapped to Net::HTTPResponse’s message or exception’s message property.
Instance Method Summary collapse
-
#initialize(code) ⇒ NetworkError
constructor
A new instance of NetworkError.
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
#code ⇒ Object (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 |