Exception: RestClientWrapper::RestClientError
- Inherits:
-
StandardError
- Object
- StandardError
- RestClientWrapper::RestClientError
- Defined in:
- lib/rest_client_wrapper/exceptions.rb
Overview
RestClientError
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response = nil, error = nil) ⇒ RestClientError
constructor
A new instance of RestClientError.
Constructor Details
#initialize(message = nil, response = nil, error = nil) ⇒ RestClientError
Returns a new instance of RestClientError.
26 27 28 29 30 |
# File 'lib/rest_client_wrapper/exceptions.rb', line 26 def initialize(=nil, response=nil, error=nil) @response = response @error = error super() end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
24 25 26 |
# File 'lib/rest_client_wrapper/exceptions.rb', line 24 def error @error end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
24 25 26 |
# File 'lib/rest_client_wrapper/exceptions.rb', line 24 def response @response end |