Class pokemonDiedPermanentlyDuringItsTurnException

java.lang.Object
java.lang.Throwable
java.lang.Exception
CustomException.pokemonDiedPermanentlyDuringItsTurnException
All Implemented Interfaces:
Serializable

public class pokemonDiedPermanentlyDuringItsTurnException extends Exception
Thrown to indicate that a Pokémon has permanently fainted during its own turn.

This exception is intended to signal a terminal game state for a Pokémon, where recovery or revival is no longer possible as a result of actions taken during that Pokémon’s turn.

This exception may be used by battle logic to immediately halt further actions for the affected Pokémon and trigger appropriate end-of-turn or end-of-battle handling.

See Also:
  • Constructor Details

    • pokemonDiedPermanentlyDuringItsTurnException

      public pokemonDiedPermanentlyDuringItsTurnException()
      Constructs a new exception with no detail message.
    • pokemonDiedPermanentlyDuringItsTurnException

      public pokemonDiedPermanentlyDuringItsTurnException(String message)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - a human-readable description of the cause of the exception