public class CommandNotFoundException extends CommandException
| Constructor and Description |
|---|
CommandNotFoundException(String command)
Create an exception with the default message.
|
CommandNotFoundException(Text message,
String command)
Create an exception with a custom message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand()
Returns the command that was queried for.
|
shouldIncludeUsagegetLocalizedMessage, getMessage, getTextaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CommandNotFoundException(String command)
command - The command that was queried forpublic String getCommand()