Structured error types returned by all AdyenClient API calls.
All API functions return {:ok, response} or {:error, AdyenClient.Error.t()}.
Summary
Functions
Build a config error.
Build an error from an Adyen API error response body.
Build a network/timeout error.
Build a webhook validation error.
Types
@type error_type() ::
:api_error
| :auth_error
| :validation_error
| :not_found
| :rate_limited
| :server_error
| :network_error
| :timeout
| :config_error
| :webhook_validation_error
@type t() :: %AdyenClient.Error{ __exception__: true, error_code: String.t() | nil, message: String.t(), psp_reference: String.t() | nil, raw: map() | nil, retryable: boolean(), status: non_neg_integer() | nil, type: error_type() }
Functions
Build a config error.
@spec from_response(map(), non_neg_integer()) :: t()
Build an error from an Adyen API error response body.
Build a network/timeout error.
Build a webhook validation error.