Class KiteExceptionHandler

java.lang.Object
cloud.kitelang.cli.KiteExceptionHandler
All Implemented Interfaces:
picocli.CommandLine.IExecutionExceptionHandler, picocli.CommandLine.IParameterExceptionHandler

public class KiteExceptionHandler extends Object implements picocli.CommandLine.IParameterExceptionHandler, picocli.CommandLine.IExecutionExceptionHandler
Custom exception handlers for the Kite CLI. Provides user-friendly error messages with helpful suggestions.
  • Constructor Details

    • KiteExceptionHandler

      public KiteExceptionHandler()
  • Method Details

    • handleParseException

      public int handleParseException(picocli.CommandLine.ParameterException ex, String[] args)
      Handles parameter parsing exceptions (invalid arguments, missing values, etc.)
      Specified by:
      handleParseException in interface picocli.CommandLine.IParameterExceptionHandler
    • handleExecutionException

      public int handleExecutionException(Exception ex, picocli.CommandLine cmd, picocli.CommandLine.ParseResult parseResult)
      Handles execution exceptions (errors during command execution)
      Specified by:
      handleExecutionException in interface picocli.CommandLine.IExecutionExceptionHandler