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

View Source

Error for signal routing and dispatch failures.

Fields

  • message - Human-readable error message
  • target - The intended routing target
  • details - Additional context

Summary

Types

t()

@type t() :: %Jido.Error.RoutingError{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  details: map(),
  message: String.t(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  target: any(),
  vars: term()
}

Functions

exception(msg)

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

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

Keys

  • :message
  • :target
  • :details