Class ProxyCommandException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.github.waterfallmc.waterfall.exception.ProxyException
-
- io.github.waterfallmc.waterfall.exception.ProxyCommandException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ProxyTabCompleteException
public class ProxyCommandException extends ProxyException
Thrown when a command throws an exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProxyCommandException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments)
ProxyCommandException(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments)
ProxyCommandException(Throwable cause, Command command, CommandSender commandSender, String[] arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getArguments()
Gets the arguments which threw the exception for the commandCommand
getCommand()
Gets the command which threw the exceptionCommandSender
getCommandSender()
Gets the command sender which executed the command request-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ProxyCommandException
public ProxyCommandException(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments)
-
ProxyCommandException
public ProxyCommandException(Throwable cause, Command command, CommandSender commandSender, String[] arguments)
-
ProxyCommandException
protected ProxyCommandException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments)
-
-
Method Detail
-
getCommand
public Command getCommand()
Gets the command which threw the exception- Returns:
- exception throwing command
-
getCommandSender
public CommandSender getCommandSender()
Gets the command sender which executed the command request- Returns:
- command sender of exception thrown command request
-
getArguments
public String[] getArguments()
Gets the arguments which threw the exception for the command- Returns:
- arguments of exception thrown command request
-
-