Exception: EposNowClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- EposNowClient::Error
- Defined in:
- lib/epos_now_client/error.rb
Direct Known Subclasses
AuthenticationError, ConnectionError, NotFoundError, RateLimitError, ServerError, TimeoutError, ValidationError
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 = nil, status: nil, body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status: nil, body: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/epos_now_client/error.rb', line 7 def initialize( = nil, status: nil, body: nil) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/epos_now_client/error.rb', line 5 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/epos_now_client/error.rb', line 5 def status @status end |