Exception: Callapi::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/callapi/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(status, message) ⇒ ApiError

Returns a new instance of ApiError.



22
23
24
# File 'lib/callapi/errors.rb', line 22

def initialize(status, message)
  super "#{status}: #{message}"
end