Exception: Slimpay::Error

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

Instance Method Summary collapse

Constructor Details

#initialize(error_data = {}) ⇒ Error

Returns a new instance of Error.



3
4
5
6
7
# File 'lib/slimpay/error.rb', line 3

def initialize(error_data = {})
  if error_data[:json] && error_data[:json]['message']
    super(error_data[:json]['message'])
  end
end