Exception: Orderspace::RequestError
- Defined in:
- lib/orderspace/error.rb
Overview
Basic Error representing the possible errors that can happen during our communication with the API.
Direct Known Subclasses
AuthorizationFailedError, BadRequestError, InternalServerError, NotFoundError, TooManyRequestsError, UnprocessableEntityError
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
19 20 21 22 |
# File 'lib/orderspace/error.rb', line 19 def initialize(response) @response = response super((response)) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
17 18 19 |
# File 'lib/orderspace/error.rb', line 17 def end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
17 18 19 |
# File 'lib/orderspace/error.rb', line 17 def response @response end |