Jido.Error.ExecutionError exception (Jido v2.1.0)

View Source

Error for runtime execution failures.

Covers action execution and planning failures.

Fields

  • message - Human-readable error message
  • phase - Where failure occurred: :execution, :planning
  • details - Additional context

Summary

Types

t()

@type t() :: %Jido.Error.ExecutionError{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  details: map(),
  message: String.t(),
  path: term(),
  phase: :execution | :planning | nil,
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(msg)

@spec exception(opts :: Keyword.t()) :: %Jido.Error.ExecutionError{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  details: term(),
  message: term(),
  path: term(),
  phase: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.Jido.Error.ExecutionError without raising it.

Keys

  • :message
  • :phase
  • :details