Exception: Payjp::CardError
- Inherits:
-
PayjpError
- Object
- StandardError
- PayjpError
- Payjp::CardError
- Defined in:
- lib/payjp/errors/card_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Attributes inherited from PayjpError
#http_body, #http_status, #json_body, #message
Instance Method Summary collapse
-
#initialize(message, param, code, http_status = nil, http_body = nil, json_body = nil) ⇒ CardError
constructor
A new instance of CardError.
Methods inherited from PayjpError
Constructor Details
#initialize(message, param, code, http_status = nil, http_body = nil, json_body = nil) ⇒ CardError
Returns a new instance of CardError.
5 6 7 8 9 |
# File 'lib/payjp/errors/card_error.rb', line 5 def initialize(, param, code, http_status = nil, http_body = nil, json_body = nil) super(, http_status, http_body, json_body) @param = param @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/payjp/errors/card_error.rb', line 3 def code @code end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
3 4 5 |
# File 'lib/payjp/errors/card_error.rb', line 3 def param @param end |