Exception: HaveAPI::Client::ActionFailed
- Inherits:
-
StandardError
- Object
- StandardError
- HaveAPI::Client::ActionFailed
- Defined in:
- lib/haveapi/client/exceptions.rb
Direct Known Subclasses
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.
5 6 7 |
# File 'lib/haveapi/client/exceptions.rb', line 5 def initialize(response) @response = response end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/haveapi/client/exceptions.rb', line 9 def "#{@response.action.name} failed: #{@response.}" end |