Class NoCommandInLeafException

All Implemented Interfaces:
Serializable

@API(status=STABLE) public final class NoCommandInLeafException extends IllegalStateException
Thrown when a CommandArgument that is registered as a leaf node, does not contain an owning Command
See Also:
  • Constructor Details

    • NoCommandInLeafException

      @API(status=INTERNAL, consumers="cloud.commandframework.*") public NoCommandInLeafException(@NonNull CommandArgument<?,?> commandArgument)
      Create a new no command in leaf exception instance
      Parameters:
      commandArgument - Command argument that caused the exception
  • Method Details

    • getCommandArgument

      public @NonNull CommandArgument<?,?> getCommandArgument()
      Get the command argument
      Returns:
      Command argument