R - the return type of this handler@Deprecated public static interface CommandLine.IExceptionHandler2<R>
ParameterExceptions (usually from invalid user input)
and ExecutionExceptions that occurred while executing the Runnable or Callable command.
Implementations of this interface can be passed to the
CommandLine::parseWithHandlers method.
This interface replaces the CommandLine.IParseResultHandler interface.
CommandLine.DefaultExceptionHandler| Modifier and Type | Method and Description |
|---|---|
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. |
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. |
R handleParseException(CommandLine.ParameterException ex, String[] args)
ParameterException that occurred while parsing the command
line arguments and optionally returns a list of results.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 invalidargs - the command line arguments that could not be parsedR handleExecutionException(CommandLine.ExecutionException ex, CommandLine.ParseResult parseResult)
ExecutionException that occurred while executing the Runnable or
Callable command and optionally returns a list of results.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 executedparseResult - the result of parsing the command line arguments