Exception: Eson::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Eson::Error
- Defined in:
- lib/eson/error.rb
Overview
Special error class for errors happening in the Eson context. In contrast to StandardErrors, this error also holds the response associated with this Error.
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, response) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 |
# File 'lib/eson/error.rb', line 11 def initialize(msg, response) super(response.body) self.response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/eson/error.rb', line 6 def response @response end |