Exception: Stretcher::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Stretcher::RequestError
- Defined in:
- lib/stretcher/request_error.rb
Overview
Raised when the underlying http status of an operation != 200
Direct Known Subclasses
Defined Under Namespace
Classes: NotFound
Instance Attribute Summary collapse
-
#http_response ⇒ Object
readonly
Returns the value of attribute http_response.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(http_response) ⇒ RequestError
Returns a new instance of RequestError.
6 7 8 |
# File 'lib/stretcher/request_error.rb', line 6 def initialize(http_response) @http_response = http_response end |
Instance Attribute Details
#http_response ⇒ Object (readonly)
Returns the value of attribute http_response.
4 5 6 |
# File 'lib/stretcher/request_error.rb', line 4 def http_response @http_response end |