Class CommandExecutionException

All Implemented Interfaces:
Serializable

public class CommandExecutionException extends IllegalArgumentException
Exception thrown when there is an exception during execution of a command handler
Since:
1.2.0
See Also:
Serialized Form
  • Constructor Details

    • CommandExecutionException

      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

      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 handler
      commandContext - Command context
      Since:
      1.4.0
  • Method Details

    • getCommandContext

      public @Nullable CommandContext<?> getCommandContext()
      Get the CommandContext which led to this exception
      Returns:
      Command
      Since:
      1.4.0