Class PlayerUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
nl.pim16aap2.lightkeeper.framework.PlayerUnavailableException
- All Implemented Interfaces:
Serializable
Thrown when a synthetic player cannot perform an action because its server-side lifecycle state is no longer
active.
The PlayerUnavailableException.Reason is stable for programmatic assertions; the exception message retains the agent's
contextual diagnostics, such as the attempted action and recorded death details.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMachine-readable synthetic-player availability failures. -
Constructor Summary
ConstructorsConstructorDescriptionPlayerUnavailableException(PlayerUnavailableException.Reason reason, String message) Creates a player-availability exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
reason
Returns why the synthetic player was unavailable.- Returns:
- Machine-readable availability reason.
-