Docket.Error exception (docket v0.1.1)

Copy Markdown View Source

Public typed error returned by runtime and execution APIs.

type identifies the error family; phase narrows where it occurred when useful (for example :run_initialized for a failed initialization checkpoint). node_id is the public graph node ID when the error is node-scoped.

Summary

Types

t()

@type t() :: %Docket.Error{
  __exception__: true,
  details: map(),
  message: String.t(),
  node_id: String.t() | nil,
  phase: atom() | nil,
  reason: term(),
  type: atom()
}