E2bEx.Error (E2bEx v0.1.0)

Copy Markdown View Source

Uniform error returned by all E2bEx calls.

For API errors (non-2xx responses), status, code, message and the raw body are populated. For transport failures (timeout, connection closed), reason is set and status is nil.

Summary

Types

t()

@type t() :: %E2bEx.Error{
  body: term(),
  code: integer() | String.t() | nil,
  message: String.t() | nil,
  reason: term() | nil,
  status: non_neg_integer() | nil
}