Class PlayerNotBannedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.plex.command.exception.PlayerNotBannedException
All Implemented Interfaces:
Serializable

public class PlayerNotBannedException extends RuntimeException
Signals that a command expected a banned player but none was found.
See Also:
  • Constructor Details

    • PlayerNotBannedException

      public PlayerNotBannedException()
      Creates an exception with the default player-not-banned marker message.
    • PlayerNotBannedException

      public PlayerNotBannedException(String message)
      Creates an exception with a custom user-facing message.
      Parameters:
      message - failure message