Exception: Rma::Payment::Gateway::InvalidParameterError

Inherits:
Error
  • Object
show all
Defined in:
lib/rma/payment/gateway/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response_code: 422, response_detail: "Invalid parameters") ⇒ InvalidParameterError

Returns a new instance of InvalidParameterError.



15
16
17
18
19
# File 'lib/rma/payment/gateway/errors.rb', line 15

def initialize(message, response_code: 422, response_detail: "Invalid parameters")
  super(message)
  @response_code = response_code
  @response_detail = response_detail
end

Instance Attribute Details

#response_codeObject (readonly)

Returns the value of attribute response_code.



13
14
15
# File 'lib/rma/payment/gateway/errors.rb', line 13

def response_code
  @response_code
end

#response_detailObject (readonly)

Returns the value of attribute response_detail.



13
14
15
# File 'lib/rma/payment/gateway/errors.rb', line 13

def response_detail
  @response_detail
end