Raxol.UI.Components.Harness.ErrorBlock (Raxol v2.6.1)

View Source

Renders a fault: error{where, reason}.

Distinct error styling -- a red-accented, bordered box -- so a fault reads as unmistakably different from a message or reasoning block in the same transcript.

Summary

Types

t()

@type t() :: %{
  id: String.t() | atom(),
  where: term(),
  reason: term(),
  style: map(),
  theme: map()
}

Functions

broadcast(msg)

command(cmd)

handle_event(event, state, context)

Callback implementation for Raxol.UI.Components.Base.Component.handle_event/3.

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.

update(props, state)

Callback implementation for Raxol.UI.Components.Base.Component.update/2.