Exception: Afterpay::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/afterpay/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code) ⇒ BaseError

Returns a new instance of BaseError.



7
8
9
10
# File 'lib/afterpay/errors.rb', line 7

def initialize(error_code)
  super
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



5
6
7
# File 'lib/afterpay/errors.rb', line 5

def error_code
  @error_code
end