Jido.BehaviorTree.Error.BehaviorTreeError exception (Jido Behavior Tree v1.0.0)

View Source

General behavior tree error

Summary

Types

t()

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

Functions

exception(msg)

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

Create an Elixir.Jido.BehaviorTree.Error.BehaviorTreeError without raising it.

Keys

  • :message
  • :details