Class NoCommandInLeafException

All Implemented Interfaces:
Serializable

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

    • NoCommandInLeafException

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

    • commandComponent

      public @NonNull CommandComponent<?> commandComponent()
      Returns the command component.
      Returns:
      command component