Exception: DkPaymentGateway::InvalidParameterError

Inherits:
Error
  • Object
show all
Defined in:
lib/dk_payment_gateway/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response_code: nil, response_detail: nil) ⇒ InvalidParameterError

Returns a new instance of InvalidParameterError.



13
14
15
16
17
# File 'lib/dk_payment_gateway/errors.rb', line 13

def initialize(message, response_code: nil, response_detail: nil)
  super(message)
  @response_code = response_code
  @response_detail = response_detail
end

Instance Attribute Details

#response_codeObject (readonly)

Returns the value of attribute response_code.



11
12
13
# File 'lib/dk_payment_gateway/errors.rb', line 11

def response_code
  @response_code
end

#response_detailObject (readonly)

Returns the value of attribute response_detail.



11
12
13
# File 'lib/dk_payment_gateway/errors.rb', line 11

def response_detail
  @response_detail
end