Exception: Pebbles::API::Errors::ErrorWithResponse
- Defined in:
- lib/pebbles/api/errors.rb
Direct Known Subclasses
Forbidden, Locked, NilApp, NotFound, RateLimitExceeded, 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.
9 10 11 12 13 |
# File 'lib/pebbles/api/errors.rb', line 9 def initialize(, response) = << "\nbody: #{response.body.inspect}" super @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/pebbles/api/errors.rb', line 7 def response @response end |