Class Errors.CommandException

All Implemented Interfaces:
Serializable
Enclosing class:
Errors

public static class Errors.CommandException extends Errors.VitalStrikeException
Exception for invalid command usage
See Also:
  • Constructor Details

    • CommandException

      public CommandException(String message, String command)
      Creates a new CommandException with the specified message and command
      Parameters:
      message - the error message
      command - the command that caused this error
    • CommandException

      public CommandException(String message, String command, Throwable cause)
      Creates a new CommandException with the specified message, command, and cause
      Parameters:
      message - the error message
      command - the command that caused this error
      cause - the cause of the error
  • Method Details

    • getCommand

      public String getCommand()
      Gets the command that caused this error
      Returns:
      the command string