Class ExecutionExceptionHandler

  • All Implemented Interfaces:
    picocli.CommandLine.IExecutionExceptionHandler

    public class ExecutionExceptionHandler
    extends Object
    implements picocli.CommandLine.IExecutionExceptionHandler
    Handles exceptions that happen during command executions.
    • Constructor Detail

      • ExecutionExceptionHandler

        public ExecutionExceptionHandler​(CliConsole console)
    • Method Detail

      • handleExecutionException

        public int handleExecutionException​(Exception ex,
                                            picocli.CommandLine commandLine,
                                            picocli.CommandLine.ParseResult parseResult)
                                     throws Exception
        Specified by:
        handleExecutionException in interface picocli.CommandLine.IExecutionExceptionHandler
        Throws:
        Exception