Exception: Mortar::API::Errors::ErrorWithResponse
- Defined in:
- lib/mortar/api/errors.rb
Direct Known Subclasses
BadRequest, Conflict, Forbidden, Locked, NotFound, Redirect, RequestFailed, Timeout, Unauthorized, VerificationRequired
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.
29 30 31 32 |
# File 'lib/mortar/api/errors.rb', line 29 def initialize(, response) super @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
27 28 29 |
# File 'lib/mortar/api/errors.rb', line 27 def response @response end |