Exception: Easyship::Errors::EasyshipError
- Inherits:
-
StandardError
- Object
- StandardError
- Easyship::Errors::EasyshipError
- Defined in:
- lib/easyship/errors/easyship_error.rb
Overview
Represents an error that is raised when an error occurs in the Easyship API.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body_error ⇒ Object
readonly
Returns the value of attribute body_error.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message: '', body_error: {}) ⇒ EasyshipError
constructor
A new instance of EasyshipError.
Constructor Details
#initialize(message: '', body_error: {}) ⇒ EasyshipError
Returns a new instance of EasyshipError.
9 10 11 12 13 |
# File 'lib/easyship/errors/easyship_error.rb', line 9 def initialize(message: '', body_error: {}) super() @message = @body_error = body_error end |
Instance Attribute Details
#body_error ⇒ Object (readonly)
Returns the value of attribute body_error.
7 8 9 |
# File 'lib/easyship/errors/easyship_error.rb', line 7 def body_error @body_error end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/easyship/errors/easyship_error.rb', line 7 def @message end |