Exception: Dimelo::CCP::API::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dimelo/ccp/api/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, status, message = '') ⇒ BaseError

Returns a new instance of BaseError.



29
30
31
32
33
34
# File 'lib/dimelo/ccp/api/error.rb', line 29

def initialize(name, status, message='')
  @name = name
  @status = status
  @message = message
  super("error_type:#{name} - status:#{status} - body:#{message}")
end