Rendro.Error (Rendro v0.2.0)

Copy Markdown View Source

Structured diagnostics for render failures.

The pipeline wraps stage failures in this struct so callers receive actionable context (what/where/why/next) plus correlation metadata.

Summary

Types

t()

@type t() :: %Rendro.Error{
  details: map(),
  next: String.t(),
  reason: term() | nil,
  render_id: String.t() | nil,
  stage: atom(),
  what: String.t(),
  where: String.t(),
  why: String.t()
}

Functions

from_stage(stage, reason, context \\ %{})

@spec from_stage(atom(), term(), map()) :: t()