Alpa.Error (AlpaEx v1.0.3)
View SourceError types for the Alpa client.
All API errors are wrapped in an Alpa.Error struct with
structured information about what went wrong.
Summary
Functions
Create an error from an HTTP response.
Create an invalid response error.
Create a missing credentials error.
Create a network/connection error.
Create a timeout error.
Types
@type error_type() ::
:unauthorized
| :forbidden
| :not_found
| :unprocessable_entity
| :rate_limited
| :server_error
| :network_error
| :timeout
| :invalid_response
| :missing_credentials
| :unknown
@type t() :: %Alpa.Error{ code: integer() | nil, details: map() | nil, message: String.t(), type: error_type() }