Exception: Excon::Error::HTTPStatus
- Inherits:
-
Excon::Error
- Object
- StandardError
- Excon::Error
- Excon::Error::HTTPStatus
- Defined in:
- lib/excon/error.rb
Overview
Base class for HTTP Error classes
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, request = nil, response = nil) ⇒ HTTPStatus
constructor
A new instance of HTTPStatus.
Methods inherited from Excon::Error
Constructor Details
#initialize(msg, request = nil, response = nil) ⇒ HTTPStatus
Returns a new instance of HTTPStatus.
71 72 73 74 75 |
# File 'lib/excon/error.rb', line 71 def initialize(msg, request = nil, response = nil) super(msg) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
69 70 71 |
# File 'lib/excon/error.rb', line 69 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
69 70 71 |
# File 'lib/excon/error.rb', line 69 def response @response end |