Meili.Error exception (Meili v0.1.3)

Copy Markdown View Source

Summary

Types

t()

@type t() :: %Meili.Error{
  __exception__: term(),
  code: String.t() | nil,
  link: String.t() | nil,
  message: String.t(),
  reason: term() | nil,
  status_code: integer() | nil,
  type: String.t() | nil
}

Functions

from_reason(reason)

@spec from_reason(term()) :: t()

from_response(map)

@spec from_response(map() | Req.Response.t()) :: t()