Class AccountabilityWiringException

All Implemented Interfaces:
Serializable

public class AccountabilityWiringException extends IllegalStateException
Thrown when an ActionExecutor dispatches a role action without its accountability wiring: a principal and a default AuthorityScope. It is thrown before the action body runs, so the action has no side effect, and it is not retried: RetryPolicy treats it as terminal, since a retry cannot wire the executor. That holds when it is the failure itself; as the cause of another exception it is not recognised there. An agent does not hand it to its error-recovery fallback or its recovery manager either. Wire both through AgentBuilder.principal / .authorityScope or the matching ActionExecutor setters.

It extends IllegalStateException, which this failure was thrown as before, so existing catch (IllegalStateException) handlers keep catching it.

Since:
0.17.2
See Also:
  • Constructor Details

    • AccountabilityWiringException

      public AccountabilityWiringException(String message)
      Parameters:
      message - which part of the wiring is missing