Exception: HaveAPI::Client::ActionFailed
- Inherits:
-
StandardError
- Object
- StandardError
- HaveAPI::Client::ActionFailed
- Defined in:
- lib/haveapi/client/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ActionFailed
constructor
A new instance of ActionFailed.
Constructor Details
#initialize(response) ⇒ ActionFailed
Returns a new instance of ActionFailed.
7 8 9 10 11 |
# File 'lib/haveapi/client/exceptions.rb', line 7 def initialize(response) super("#{response.action.name} failed: #{response.}") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/haveapi/client/exceptions.rb', line 5 def response @response end |