Mercury.APIError exception (mercury_client v1.0.0)

Copy Markdown View Source

The base exception for Mercury HTTP API errors that don't map to a more specific exception (e.g. HTTP 403 Forbidden, or any unrecognised status).

Summary

Types

t()

@type t() :: %Mercury.APIError{
  __exception__: true,
  body: map() | nil,
  code: atom(),
  message: String.t(),
  request_id: String.t() | nil,
  status: pos_integer() | nil
}