Exception: GasfreeSdk::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GasfreeSdk::Error
- Defined in:
- lib/gasfree_sdk.rb,
lib/gasfree_sdk/errors.rb
Overview
Base error class for all SDK errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(message, code: nil, reason: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, reason: nil) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 |
# File 'lib/gasfree_sdk/errors.rb', line 9 def initialize(, code: nil, reason: nil) super() @code = code @reason = reason end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/gasfree_sdk/errors.rb', line 7 def code @code end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
7 8 9 |
# File 'lib/gasfree_sdk/errors.rb', line 7 def reason @reason end |