Exception: Payoneer::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Payoneer::Error
- Defined in:
- lib/payoneer/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(description: '', details: {}, code: 0) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(description: '', details: {}, code: 0) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 |
# File 'lib/payoneer/error.rb', line 5 def initialize(description: '', details: {}, code: 0) super(description) @description = description @details = details @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/payoneer/error.rb', line 3 def code @code end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/payoneer/error.rb', line 3 def description @description end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
3 4 5 |
# File 'lib/payoneer/error.rb', line 3 def details @details end |