Class CommandExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- cloud.commandframework.exceptions.CommandExecutionException
-
- All Implemented Interfaces:
java.io.Serializable
public class CommandExecutionException extends java.lang.IllegalArgumentException
Exception thrown when there is an exception during execution of a command handler- Since:
- 1.2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandExecutionException(@NonNull java.lang.Throwable cause)
Exception thrown when there is an exception during execution of a command handlerCommandExecutionException(@NonNull java.lang.Throwable cause, @Nullable CommandContext<?> commandContext)
Exception thrown when there is an exception during execution of a command handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable CommandContext<?>
getCommandContext()
Get the CommandContext which led to this exception
-
-
-
Constructor Detail
-
CommandExecutionException
public CommandExecutionException(@NonNull java.lang.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
public CommandExecutionException(@NonNull java.lang.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- Since:
- 1.4.0
-
-
Method Detail
-
getCommandContext
public @Nullable CommandContext<?> getCommandContext()
Get the CommandContext which led to this exception- Returns:
- Command
- Since:
- 1.4.0
-
-