Class PlayerUnavailableException

All Implemented Interfaces:
Serializable

public class PlayerUnavailableException extends IllegalStateException
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:
  • Constructor Details

    • PlayerUnavailableException

      public PlayerUnavailableException(PlayerUnavailableException.Reason reason, String message)
      Creates a player-availability exception.
      Parameters:
      reason - Machine-readable reason the player is unavailable.
      message - Human-readable lifecycle and action diagnostics from the agent.
  • Method Details