CommandsException class
The base class for exceptions thrown by nyxx_commands.
All exceptions thrown by the library extend or implement this class, so you may use this as a catch-all type. Exceptions thrown by nyxx_commands are often caught internally by the library and added to CommandsPlugin.onCommandError, so you need not catch exceptions yourself.
You might also be interested in:
- CommandsError, the base class for all errors thrown by nyxx_commands;
- CommandsPlugin.onCommandError, for handling exceptions thrown in commands.
Constructors
- CommandsException(String message)
- Create a new CommandsException.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
The message for this exception.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace ↔ StackTrace?
-
The stack trace at the point where this exception was first thrown.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited