Exception: LemonWay::LemonWayError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lemon_way/error.rb

Constant Summary collapse

DIRECKIT_DOCUMENTATION_URL =
'http://documentation.lemonway.fr/api-en/directkit'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(error = {}) ⇒ LemonWayError

Returns a new instance of LemonWayError.



23
24
25
26
27
28
29
# File 'lib/lemon_way/error.rb', line 23

def initialize(error = {})
  super(%(
    Code: #{error.try(:[], :code)}
    Message: #{error.try(:[], :msg)}
    Documentation: #{DIRECKIT_DOCUMENTATION_URL}
  ))
end