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