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 SummaryConstructorsModifierConstructorDescriptionprotectedServerCommandException(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 SummaryModifier 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.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ServerCommandExceptionpublic ServerCommandException(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments) 
- 
ServerCommandExceptionpublic ServerCommandException(Throwable cause, Command command, CommandSender commandSender, String[] arguments) 
- 
ServerCommandExceptionprotected ServerCommandException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments) 
 
- 
- 
Method Details- 
getCommandGets the command which threw the exception- Returns:
- exception throwing command
 
- 
getCommandSenderGets the command sender which executed the command request- Returns:
- command sender of exception thrown command request
 
- 
getArgumentsGets the arguments which threw the exception for the command- Returns:
- arguments of exception thrown command request
 
 
-