public class CommandException extends TextMessageException
| Constructor and Description |
|---|
CommandException(Text message)
Constructs a new
CommandException with the given message. |
CommandException(Text message,
boolean includeUsage)
Constructs a new
CommandException with the given message. |
CommandException(Text message,
Throwable cause)
Constructs a new
CommandException with the given message and
the given cause. |
CommandException(Text message,
Throwable cause,
boolean includeUsage)
Constructs a new
CommandException with the given message and
the given cause. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldIncludeUsage()
Gets whether the exception should include usage in
the presentation of the exception/stack-trace.
|
getLocalizedMessage, getMessage, getTextaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CommandException(Text message)
CommandException with the given message.message - The detail messagepublic CommandException(Text message, Throwable cause)
CommandException with the given message and
the given cause.message - The detail messagecause - The causepublic CommandException(Text message, boolean includeUsage)
CommandException with the given message.message - The detail messageincludeUsage - Whether to include usage in the exceptionpublic CommandException(Text message, Throwable cause, boolean includeUsage)
CommandException with the given message and
the given cause.message - The detail messagecause - The causeincludeUsage - Whether to include the usage in the exception