Exception: HaveAPI::Client::ActionFailed

Inherits:
Exception
  • Object
show all
Defined in:
lib/haveapi/client/exceptions.rb

Instance Method Summary collapse

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

#messageObject



8
9
10
# File 'lib/haveapi/client/exceptions.rb', line 8

def message
  "#{@response.action.name} failed: #{@response.message}"
end