Class IncompleteHandlingException
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.IncompleteHandlingException
- All Implemented Interfaces:
Serializable
Exception type that indicates that the invocation handling of a command was completed
but did not issue any result (i.e. all the invocation handlers in the chain resulted
into an empty Mono).
- Since:
- 1.0
- Version:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncompleteHandlingException
(List<? extends Command<?>> chain, Invocation invocation) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionCommand<?>
Retrieves the command that was invoked.Retrieves the command chain that was being executed.Retrieves the invocation that triggered the command.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IncompleteHandlingException
Creates a new instance.- Parameters:
chain
- The command that was being executed.invocation
- The invocation that triggered the command.
-
-
Method Details
-
getCommand
Retrieves the command that was invoked.- Returns:
- The command that was invoked.
-
getExecutionChain
Retrieves the command chain that was being executed.- Returns:
- The command chain that was being executed.
-
getInvocation
Retrieves the invocation that triggered the command.- Returns:
- The invocation that triggered the command.
-