Exception: Rma::Payment::Gateway::InvalidParameterError
- Defined in:
- lib/rma/payment/gateway/errors.rb
Instance Attribute Summary collapse
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
-
#response_detail ⇒ Object
readonly
Returns the value of attribute response_detail.
Instance Method Summary collapse
-
#initialize(message, response_code: 422, response_detail: "Invalid parameters") ⇒ InvalidParameterError
constructor
A new instance of InvalidParameterError.
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(, response_code: 422, response_detail: "Invalid parameters") super() @response_code = response_code @response_detail = response_detail end |
Instance Attribute Details
#response_code ⇒ Object (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_detail ⇒ Object (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 |