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.
|
shouldIncludeUsage
getLocalizedMessage, getMessage, getText
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CommandNotFoundException(String command)
command
- The command that was queried forpublic String getCommand()