Class InvalidChainException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.sympho.modular_commands.api.exception.CommandException
dev.sympho.modular_commands.api.exception.InvalidChainException
- All Implemented Interfaces:
Serializable
Exception type that is triggered when a command chain being invoked is not valid due to
an incompatiblity between commands in the chain.
- Since:
- 1.0
- Version:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidChainException
(Command<?> command, Command<?> parent, String message) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the command that was being executed.Retrieves the ancestor that is incompatible.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
InvalidChainException
Creates a new instance.- Parameters:
command
- The command that was being executed.parent
- The ancestor that is incompatible.message
- The error message.
-
-
Method Details