Package com.tnsai.accountability
Class AccountabilityWiringException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.tnsai.accountability.AccountabilityWiringException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AccountabilityWiringException
- Parameters:
message- which part of the wiring is missing
-