Exception: Down::ResponseError
- Defined in:
- lib/down/errors.rb
Overview
raised when response returned 4xx or 5xx response
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(message, response = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
23 24 25 26 |
# File 'lib/down/errors.rb', line 23 def initialize(, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
21 22 23 |
# File 'lib/down/errors.rb', line 21 def response @response end |