Class CommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.sympho.modular_commands.api.exception.CommandException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IncompleteHandlingException
,InvalidArgumentException
,InvalidChainException
,ResultException
Base type for exceptions related to the command system.
- Since:
- 1.0
- Version:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a new exception.CommandException
(String message) Constructs a new exception.protected
CommandException
(String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new exception.CommandException
(String message, Throwable cause) Constructs a new exception.CommandException
(Throwable cause) Constructs a new exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandException
public CommandException()Constructs a new exception.- See Also:
-
CommandException
Constructs a new exception.- Parameters:
message
- The detail message.- See Also:
-
CommandException
Constructs a new exception.- Parameters:
message
- The detail message.cause
- The cause.- See Also:
-
CommandException
Constructs a new exception.- Parameters:
cause
- The cause.- See Also:
-
CommandException
protected CommandException(String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a new exception.- Parameters:
message
- The detail message.cause
- The cause. May benull
.enableSuppression
- Whether or not suppression is enabled or disabled.writableStackTrace
- Whether or not the stack trace should be writable- See Also:
-