Exception: Xplenty::API::Errors::ErrorWithResponse
- Defined in:
- lib/xplenty/api/errors.rb
Direct Known Subclasses
BadGateway, BadRequest, Forbidden, InternalServerError, NotAcceptable, NotFound, NotModified, PaymentRequired, RequestFailed, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, UnsupportedMediaType
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response) ⇒ ErrorWithResponse
constructor
A new instance of ErrorWithResponse.
Constructor Details
#initialize(message, response) ⇒ ErrorWithResponse
Returns a new instance of ErrorWithResponse.
9 10 11 12 |
# File 'lib/xplenty/api/errors.rb', line 9 def initialize(, response) super @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/xplenty/api/errors.rb', line 7 def response @response end |