Structured error returned from all Worldpay API calls.
Fields
:type— error classification atom:status— HTTP status code (nilfor non-HTTP errors):reason— atom describing the failure:message— human-readable description:raw— raw API response body (map or string):custom_code— WorldpaycustomCodefield:validation_errors— list of field-level validation errors from the API
Summary
Types
@type error_type() ::
:http_error
| :api_error
| :timeout
| :network_error
| :circuit_open
| :decode_error
| :configuration_error
@type t() :: %Worldpay.Error{ __exception__: true, custom_code: String.t() | nil, message: String.t() | nil, raw: map() | String.t() | nil, reason: atom() | nil, status: non_neg_integer() | nil, type: error_type() | nil, validation_errors: [map()] | nil }