Class pokemonDiedPermanentlyDuringItsTurnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
CustomException.pokemonDiedPermanentlyDuringItsTurnException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructs a new exception with no detail message.Constructs a new exception with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
pokemonDiedPermanentlyDuringItsTurnException
public pokemonDiedPermanentlyDuringItsTurnException()Constructs a new exception with no detail message. -
pokemonDiedPermanentlyDuringItsTurnException
Constructs a new exception with the specified detail message.- Parameters:
message- a human-readable description of the cause of the exception
-