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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninthandleExecutionException(Exception ex, picocli.CommandLine cmd, picocli.CommandLine.ParseResult parseResult) Handles execution exceptions (errors during command execution)inthandleParseException(picocli.CommandLine.ParameterException ex, String[] args) Handles parameter parsing exceptions (invalid arguments, missing values, etc.)
-
Constructor Details
-
KiteExceptionHandler
public KiteExceptionHandler()
-
-
Method Details
-
handleParseException
Handles parameter parsing exceptions (invalid arguments, missing values, etc.)- Specified by:
handleParseExceptionin interfacepicocli.CommandLine.IParameterExceptionHandler
-
handleExecutionException
public int handleExecutionException(Exception ex, picocli.CommandLine cmd, picocli.CommandLine.ParseResult parseResult) Handles execution exceptions (errors during command execution)- Specified by:
handleExecutionExceptionin interfacepicocli.CommandLine.IExecutionExceptionHandler
-