Package org.incendo.cloud.exception
Class CommandExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.CommandExecutionException
- All Implemented Interfaces:
Serializable
Exception thrown when there is an exception during execution of a command handler
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionException thrown when there is an exception during execution of a command handlerCommandExecutionException
(@NonNull Throwable cause, @Nullable CommandContext<?> commandContext) Exception thrown when there is an exception during execution of a command handler -
Method Summary
Modifier and TypeMethodDescriptioncontext()
Returns the command context which caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandExecutionException
@API(status=INTERNAL, consumers="org.incendo.cloud.*") public CommandExecutionException(@NonNull Throwable cause) Exception thrown when there is an exception during execution of a command handler- Parameters:
cause
- Exception thrown during the execution of a command handler
-
CommandExecutionException
@API(status=INTERNAL, consumers="org.incendo.cloud.*") public CommandExecutionException(@NonNull Throwable cause, @Nullable CommandContext<?> commandContext) Exception thrown when there is an exception during execution of a command handler- Parameters:
cause
- Exception thrown during the execution of a command handlercommandContext
- Command context
-
-
Method Details
-
context
Returns the command context which caused this exception.- Returns:
- Command
-