Mutare.CallRouting.ContractError exception (mutare v0.1.1)

Copy Markdown View Source

Raised when a macro-routing provider violates the extension contract.

The structured fields identify the provider, route, callback, rejected value, and reason where they are known. Configuration syntax errors remain ArgumentErrors; this exception is reserved for conflicts and callback-backed extension failures.

Summary

Types

t()

@type t() :: %Mutare.CallRouting.ContractError{
  __exception__: true,
  callback: {atom(), non_neg_integer()} | nil,
  message: String.t(),
  provider: module() | nil,
  reason: atom() | nil,
  route: term(),
  value: term()
}