public class CommandException extends Exception
| Constructor and Description |
|---|
CommandException() |
CommandException(String message) |
CommandException(String message,
Throwable t) |
CommandException(Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandUsed(String prefix,
String spacedSuffix)
Gets the command that was called, which will include the sub-command
(i.e.
|
void |
prependStack(String name) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CommandException()
public CommandException(String message)
public CommandException(Throwable t)
public void prependStack(String name)
public String getCommandUsed(String prefix, @Nullable String spacedSuffix)
prefix - the command shebang character (such as "/") -- may be emptyspacedSuffix - a suffix to put at the end (optional) -- may be nullCopyright © 2010-2014. All Rights Reserved.