Exception: Tazapay::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Tazapay::Error
- Defined in:
- lib/tazapay/errors.rb
Overview
Standard API error
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code) ⇒ Error
10 11 12 13 14 |
# File 'lib/tazapay/errors.rb', line 10 def initialize(, code) @code = code @response_body = super("Error code #{code} #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/tazapay/errors.rb', line 8 def code @code end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
8 9 10 |
# File 'lib/tazapay/errors.rb', line 8 def response_body @response_body end |