Structured error types for the Lithic client.
All public API functions return {:ok, result} or {:error, Lithic.Error.t()}.
Error Categories
:api_error— HTTP 4xx/5xx response from Lithic:network_error— TCP/DNS/timeout failure:config_error— Missing or invalid configuration:decode_error— JSON decode or type-cast failure:rate_limit— HTTP 429 Too Many Requests:auth_error— HTTP 401 Unauthorized:validation_error— HTTP 400 Bad Request / HTTP 422:not_found— HTTP 404
Summary
Types
@type category() ::
:api_error
| :network_error
| :config_error
| :decode_error
| :rate_limit
| :auth_error
| :validation_error
| :not_found