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.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ActionFailed
Returns a new instance of ActionFailed.
7 8 9 |
# File 'lib/haveapi/client/exceptions.rb', line 7 def initialize(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 |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/haveapi/client/exceptions.rb', line 11 def "#{@response.action.name} failed: #{@response.}" end |