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 code.to_i or 0 if the issue was reported by an exception.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ NetworkError
constructor
A new instance of NetworkError.
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(, code) super @code = code end |
Instance Attribute Details
#code ⇒ Object (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 |