Exception: SMSBox::ResponseException
- Inherits:
-
Exception
- Object
- Exception
- SMSBox::ResponseException
- Defined in:
- lib/sms_box/response_exception.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(error, response) ⇒ ResponseException
constructor
A new instance of ResponseException.
Constructor Details
#initialize(error, response) ⇒ ResponseException
Returns a new instance of ResponseException.
6 7 8 9 |
# File 'lib/sms_box/response_exception.rb', line 6 def initialize(error, response) super(error) self.response = response end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
3 4 5 |
# File 'lib/sms_box/response_exception.rb', line 3 def error @error end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/sms_box/response_exception.rb', line 4 def response @response end |