Exception: FulfilApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- FulfilApi::Error
- Defined in:
- lib/fulfil_api/error.rb
Overview
The Error is the base class for all FulfilApi errors, also used
for generic or unexpected errors.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(message, details: nil) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ String
Constructor Details
#initialize(message, details: nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/fulfil_api/error.rb', line 11 def initialize(, details: nil) @details = details super() end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
7 8 9 |
# File 'lib/fulfil_api/error.rb', line 7 def details @details end |
Instance Method Details
#message ⇒ String
17 18 19 |
# File 'lib/fulfil_api/error.rb', line 17 def "[FulfilApi::Error] #{super}" end |