Victoria.Runner.Failure exception (Victoria v0.1.0)

Copy Markdown View Source

Structured failure returned by fixed-trace replay.

Failures are constructed by Victoria and should be treated as read-only.

Summary

Types

The lifecycle phase that failed.

t()

A controlled replay failure with trace and callback context.

Types

phase()

@type phase() ::
  :trace_validation
  | :initialization
  | :initial_verification
  | :execution
  | :snapshot
  | :projection
  | :step_verification
  | :cleanup

The lifecycle phase that failed.

t()

@type t() :: %Victoria.Runner.Failure{
  __exception__: term(),
  action: String.t() | nil,
  cleanup_error: term() | nil,
  expected: map() | nil,
  model: module(),
  observed: map() | nil,
  phase: phase(),
  reason: term(),
  step_index: non_neg_integer() | nil,
  trace_path: Path.t()
}

A controlled replay failure with trace and callback context.