Exception: LemonWay::LemonWayError
- Inherits:
-
StandardError
- Object
- StandardError
- LemonWay::LemonWayError
- 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
-
#initialize(error = {}) ⇒ LemonWayError
constructor
A new instance of LemonWayError.
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 |