Exception: DlocalGo::Error
- Inherits:
-
StandardError
- Object
- StandardError
- DlocalGo::Error
- Defined in:
- lib/dlocal_go/errors.rb
Overview
Generic error class for all errors that occur in the gem
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(message, error_code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, error_code: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/dlocal_go/errors.rb', line 8 def initialize(, error_code: nil) @error_code = error_code super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
6 7 8 |
# File 'lib/dlocal_go/errors.rb', line 6 def error_code @error_code end |