Package stawa.vitalstrike
Class Errors.PlayerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
stawa.vitalstrike.Errors.VitalStrikeException
stawa.vitalstrike.Errors.PlayerException
- All Implemented Interfaces:
Serializable
- Enclosing class:
Errors
Exception for player-related errors
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerException(String message, String playerName) Creates a new PlayerException with the specified message and player namePlayerException(String message, String playerName, Throwable cause) Creates a new PlayerException with the specified message, player name, and cause -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the player associated with this errorMethods inherited from class stawa.vitalstrike.Errors.VitalStrikeException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PlayerException
Creates a new PlayerException with the specified message and player name- Parameters:
message- the error messageplayerName- the name of the player associated with this error
-
PlayerException
Creates a new PlayerException with the specified message, player name, and cause- Parameters:
message- the error messageplayerName- the name of the player associated with this errorcause- the cause of the error
-
-
Method Details
-
getPlayerName
Gets the name of the player associated with this error- Returns:
- the player name
-