Exception: Artery::RequestError
- Defined in:
- lib/artery/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
-
#uri ⇒ Object
Returns the value of attribute uri.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(uri, response, **context) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ Object
Constructor Details
#initialize(uri, response, **context) ⇒ RequestError
Returns a new instance of RequestError.
20 21 22 23 24 25 |
# File 'lib/artery/errors.rb', line 20 def initialize(uri, response, **context) @uri = uri @response = response || {} super(nil, **context) end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
18 19 20 |
# File 'lib/artery/errors.rb', line 18 def response @response end |
#uri ⇒ Object
Returns the value of attribute uri.
18 19 20 |
# File 'lib/artery/errors.rb', line 18 def uri @uri end |
Instance Method Details
#message ⇒ Object
27 28 29 |
# File 'lib/artery/errors.rb', line 27 def response[:error] end |