Vibe.UI.Error (vibe v0.2.2)

Copy Markdown View Source

Semantic error payload shared by TUI, Web, previews, and persisted session events.

Summary

Types

t()

@type t() :: %Vibe.UI.Error{
  detail: String.t() | nil,
  hint: String.t() | nil,
  kind: atom() | nil,
  message: String.t(),
  provider: atom() | String.t() | nil,
  retryable?: boolean()
}

Functions

detail(arg1)

@spec detail(t() | map() | term()) :: String.t() | nil

hint(arg1)

@spec hint(t() | map() | term()) :: String.t() | nil

message(message)

@spec message(t() | map() | String.t() | term()) :: String.t()

new(message, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: t()

text(error)

@spec text(t() | map() | String.t() | term()) :: String.t()