Exception: WebPay::ErrorResponse::CardError
- Inherits:
-
ErrorResponseError
- Object
- StandardError
- ApiError
- ErrorResponseError
- WebPay::ErrorResponse::CardError
- Defined in:
- lib/webpay/error.rb
Instance Attribute Summary
Attributes inherited from ErrorResponseError
Instance Method Summary collapse
-
#initialize(status, raw_data) ⇒ CardError
constructor
A new instance of CardError.
Constructor Details
#initialize(status, raw_data) ⇒ CardError
Returns a new instance of CardError.
59 60 61 62 63 |
# File 'lib/webpay/error.rb', line 59 def initialize(status, raw_data) data = WebPay::ErrorData.new(raw_data) = sprintf('%s: %s', 'CardError', data.error.) super(, status, data) end |