Lettermint.ValidationError exception (Lettermint v2.0.0)

Copy Markdown View Source

HTTP 422: the API rejected the request data.

Has the fields of Lettermint.APIError, plus errors: the field errors from Laravel's {"message": ..., "errors": {...}} body, when the API sent them.

Summary

Types

t()

@type t() :: %Lettermint.ValidationError{
  __exception__: term(),
  body: term(),
  code: String.t() | nil,
  details: term(),
  errors: %{optional(String.t()) => [String.t()]} | nil,
  message: String.t(),
  status: 422
}