Exception: Payhere::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/payhere-sdk/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/payhere-sdk/errors.rb', line 7

def initialize(message, code)
  @code = code
  super("Error code #{code} #{message}")
end