Class ServerCommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.destroystokyo.paper.exception.ServerException
com.destroystokyo.paper.exception.ServerCommandException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ServerTabCompleteException
Thrown when a command throws an exception
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServerCommandException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments) ServerCommandException
(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments) ServerCommandException
(Throwable cause, Command command, CommandSender commandSender, String[] arguments) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Gets the arguments which threw the exception for the commandGets the command which threw the exceptionGets the command sender which executed the command requestMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerCommandException
public ServerCommandException(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments) -
ServerCommandException
public ServerCommandException(Throwable cause, Command command, CommandSender commandSender, String[] arguments) -
ServerCommandException
protected ServerCommandException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments)
-
-
Method Details
-
getCommand
Gets the command which threw the exception- Returns:
- exception throwing command
-
getCommandSender
Gets the command sender which executed the command request- Returns:
- command sender of exception thrown command request
-
getArguments
Gets the arguments which threw the exception for the command- Returns:
- arguments of exception thrown command request
-