Class ConsoleOnlyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.plex.command.exception.ConsoleOnlyException
- All Implemented Interfaces:
Serializable
Signals that a command can only be run from the console.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception with the default console-only marker message.ConsoleOnlyException(String message) Creates an exception with a custom user-facing message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConsoleOnlyException
public ConsoleOnlyException()Creates an exception with the default console-only marker message. -
ConsoleOnlyException
Creates an exception with a custom user-facing message.- Parameters:
message- failure message
-