Lettermint.Types.ApiErrorDetail (Lettermint v2.0.0)

Copy Markdown View Source

schema:ApiError .error.

Fields

  • code (required): Machine-readable error code, for example RESOURCE_NOT_FOUND.
  • message (required): Human-readable error message.
  • details (optional, nullable): Additional context. Its shape depends on the error code.

Absent fields are :unset; nil is JSON null. extra holds response fields that this version of the SDK does not know.

Summary

Types

t()

@type t() :: %Lettermint.Types.ApiErrorDetail{
  code: String.t(),
  details: %{optional(String.t()) => term()} | [term()] | nil | :unset,
  extra: %{optional(String.t()) => term()},
  message: String.t()
}