| Interface | Description |
|---|---|
| CommandExceptionHandler<A extends CommandActor> |
A handler for all exceptions that may be thrown during the command
invocation.
|
| SelfHandledException<A extends CommandActor> |
An interface designed for exceptions that wish to handle themselves, without
having to be explicitly handled by an exception adapter.
|
| Class | Description |
|---|---|
| DefaultExceptionHandler<A extends CommandActor> | |
| RuntimeExceptionAdapter<A extends CommandActor> |
A utility class that allows to easily handle individual exceptions
by creating smaller functions that handle specific types of exceptions
or deal with specific
ErrorContexts. |
| Enum | Description |
|---|---|
| InputParseException.Cause |
| Exception | Description |
|---|---|
| CommandErrorException |
Represents a command error, for example when an invalid value is returned, a condition
is violated, or an illegal value is inputted, and validated through a parameter validator.
|
| CommandInvocationException |
Thrown when an exception is thrown by invoking the command's method.
|
| EnumNotFoundException |
Thrown when an invalid value is specified for an
Enum parameter. |
| ExpectedLiteralException |
Thrown when a certain literal
LiteralNode was expected, but found
a different literal. |
| InputParseException |
Thrown when a
MutableStringStream fails to parse the user input. |
| InvalidBooleanException |
Thrown when an invalid value is inputted for a
boolean parameter |
| InvalidDecimalException |
Thrown when an invalid value is supplied for a decimal-like (double, float) parameter.
|
| InvalidHelpPageException |
Thrown when an invalid page is passed to
Help.CommandList.paginate(int, int) |
| InvalidIntegerException |
Thrown when an invalid value is supplied for an integer-like (short, long, int) parameter.
|
| InvalidListSizeException |
Exception thrown when a collection-like type does not meet the specified size constraints
set by
@Sized. |
| InvalidNumberException |
Thrown when an invalid value is supplied for a number-like parameter.
|
| InvalidStringSizeException |
Exception thrown when a collection-like type does not meet the specified size constraints
set by
@Sized. |
| InvalidUUIDException |
Thrown when an invalid value is supplied for a
UUID parameter. |
| InvalidValueException |
Thrown when an unacceptable value for a certain parameter is inputted,
for example, an invalid number for a number parameter, or an invalid
UUID for a
UUID parameter. |
| MissingArgumentException |
Thrown when a parameter is missing (not specified) inside a command
|
| NoPermissionException |
Thrown when a
CommandActor lacks the required permission to
execute the given command or category. |
| NumberNotInRangeException |
Thrown when a numerical parameter that is annotated with
Range
gets a value outside its allowed range. |
| SendableException |
Represents an exception that is purely used to send messages directly to
the sender.
|
| SendMessageException |
Used to directly send-and-return a message to the command actor.
|
| UnknownCommandException |
Thrown when an invalid root command is inputted.
|
| UnknownParameterException |
| Annotation Type | Description |
|---|---|
| RuntimeExceptionAdapter.HandleException |
Annotation for creating handler functions.
|
| ThrowableFromCommand |
Marks an exception class as throwable from inside the command.
|