Exception: ThrillcallAPI::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/thrillcall-api/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ Error

Returns a new instance of Error.



3
4
5
# File 'lib/thrillcall-api/exceptions.rb', line 3

def initialize(details = {})
  super("#{details[:type]}: #{details[:message]}")
end