Package picocli

Interface CommandLine.IExceptionHandler2<R>

    • Method Detail

      • handleParseException

        R handleParseException​(CommandLine.ParameterException ex,
                               String[] args)
        Deprecated.
        Handles a ParameterException that occurred while parsing the command line arguments and optionally returns a list of results.
        Parameters:
        ex - the ParameterException describing the problem that occurred while parsing the command line arguments, and the CommandLine representing the command or subcommand whose input was invalid
        args - the command line arguments that could not be parsed
        Returns:
        an object resulting from handling the exception
      • handleExecutionException

        R handleExecutionException​(CommandLine.ExecutionException ex,
                                   CommandLine.ParseResult parseResult)
        Deprecated.
        Handles a ExecutionException that occurred while executing the Runnable or Callable command and optionally returns a list of results.
        Parameters:
        ex - the ExecutionException describing the problem that occurred while executing the Runnable or Callable command, and the CommandLine representing the command or subcommand that was being executed
        parseResult - the result of parsing the command line arguments
        Returns:
        an object resulting from handling the exception