Class CommandParseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArgumentParseException, InvalidCommandSenderException, InvalidSyntaxException, NoPermissionException, NoSuchCommandException

@API(status=STABLE) public class CommandParseException extends IllegalArgumentException
Exception thrown when parsing user input into a command
See Also:
  • Constructor Details

  • Method Details

    • commandSender

      public @NonNull Object commandSender()
      Returns the command sender.
      Returns:
      command sender
    • currentChain

      public @NonNull List<@NonNull CommandComponent<?>> currentChain()
      Returns the command chain leading up to the exception.
      Returns:
      unmodifiable list of command arguments