Class CommandNotFoundException

All Implemented Interfaces:
Serializable, ComponentMessageThrowable

public class CommandNotFoundException extends CommandException
This exception is thrown when a sender tries to execute a command that does not exist.
See Also:
  • Constructor Details

    • CommandNotFoundException

      public CommandNotFoundException(Component message, String command)
      Create an exception with a custom message.
      Parameters:
      message - The message
      command - The command that was queried for
  • Method Details

    • command

      public String command()
      Returns the command that was queried for.
      Returns:
      The command