Exception: WebPay::ErrorResponse::CardError

Inherits:
ErrorResponseError show all
Defined in:
lib/webpay/error.rb

Instance Attribute Summary

Attributes inherited from ErrorResponseError

#data, #status

Instance Method Summary collapse

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)
  message = sprintf('%s: %s', 'CardError', data.error.message)
  super(message, status, data)
end