Exception: Mamatech::ExternalSdk::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mamatech::ExternalSdk::Error
- Defined in:
- lib/mamatech_external_sdk/error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status, body) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status, body) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'lib/mamatech_external_sdk/error.rb', line 6 def initialize(, status, body) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/mamatech_external_sdk/error.rb', line 4 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/mamatech_external_sdk/error.rb', line 4 def status @status end |