Class Errors.PlayerException

All Implemented Interfaces:
Serializable
Enclosing class:
Errors

public static class Errors.PlayerException extends Errors.VitalStrikeException
Exception for player-related errors
See Also:
  • Constructor Details

    • PlayerException

      public PlayerException(String message, String playerName)
      Creates a new PlayerException with the specified message and player name
      Parameters:
      message - the error message
      playerName - the name of the player associated with this error
    • PlayerException

      public PlayerException(String message, String playerName, Throwable cause)
      Creates a new PlayerException with the specified message, player name, and cause
      Parameters:
      message - the error message
      playerName - the name of the player associated with this error
      cause - the cause of the error
  • Method Details

    • getPlayerName

      public String getPlayerName()
      Gets the name of the player associated with this error
      Returns:
      the player name