public class CommandUnhandledException extends java.lang.RuntimeException implements ICommandException
Constructor and Description |
---|
CommandUnhandledException(java.lang.String message) |
CommandUnhandledException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
handle(ICommand command,
java.util.List<ICommandArgument> args)
Called when this exception is thrown, to handle the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public CommandUnhandledException(java.lang.String message)
public CommandUnhandledException(java.lang.Throwable cause)
public void handle(ICommand command, java.util.List<ICommandArgument> args)
ICommandException
handle
in interface ICommandException
command
- The command that threw it.args
- The arguments the command was called with.