Meili.Error exception (Meili v0.1.0)

Copy Markdown View Source

Summary

Functions

Builds a %Meili.Error{} exception from an HTTP response.

Types

t()

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

Functions

from_reason(reason)

from_response(map)

Builds a %Meili.Error{} exception from an HTTP response.