Exception: Vend::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Vend::HTTPError
- Extended by:
- Forwardable
- Defined in:
- lib/vend/exception.rb
Overview
Nonspecific HTTP error which is usually thrown when a non 2xx response is received.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(response) ⇒ HTTPError
Returns a new instance of HTTPError.
31 32 33 |
# File 'lib/vend/exception.rb', line 31 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
29 30 31 |
# File 'lib/vend/exception.rb', line 29 def response @response end |