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