ExecutionPlane.Contracts.Failure (execution_plane v0.1.0)

Copy Markdown View Source

Structured failure payload used by ExecutionOutcome.v1.

Summary

Types

t()

@type t() :: %ExecutionPlane.Contracts.Failure{
  details: map(),
  durable_truth_relevance: :durable_truth | :raw_fact_only,
  failure_class: ExecutionPlane.Contracts.FailureClass.failure_class(),
  primary_owner: atom(),
  reason: String.t() | nil,
  retryable?: boolean()
}

Functions

dump(failure)

@spec dump(t()) :: map()

new(failure)

@spec new(map() | keyword() | t()) :: {:ok, t()} | {:error, Exception.t()}

new!(failure)

@spec new!(map() | keyword() | t()) :: t()