Exception: Wands::ResponseException
- Inherits:
-
StandardError
- Object
- StandardError
- Wands::ResponseException
- Defined in:
- lib/wands/response_exception.rb
Overview
This exception is raised when the response from the server is not as expected.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response) ⇒ ResponseException
constructor
A new instance of ResponseException.
- #to_s ⇒ Object
Constructor Details
#initialize(message, response) ⇒ ResponseException
Returns a new instance of ResponseException.
8 9 10 11 |
# File 'lib/wands/response_exception.rb', line 8 def initialize(, response) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/wands/response_exception.rb', line 6 def response @response end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/wands/response_exception.rb', line 13 def to_s "#{super} from '#{response}'" end |