public static class CommandLine.ParameterException extends CommandLine.PicocliException
Modifier and Type | Field and Description |
---|---|
private CommandLine |
commandLine |
private static long |
serialVersionUID |
Constructor and Description |
---|
ParameterException(CommandLine commandLine,
java.lang.String msg)
Constructs a new ParameterException with the specified CommandLine and error message.
|
ParameterException(CommandLine commandLine,
java.lang.String msg,
java.lang.Exception ex)
Constructs a new ParameterException with the specified CommandLine and error message.
|
Modifier and Type | Method and Description |
---|---|
private static CommandLine.ParameterException |
create(CommandLine cmd,
java.lang.Exception ex,
java.lang.String arg,
int i,
java.lang.String[] args) |
CommandLine |
getCommandLine()
Returns the
CommandLine object for the (sub)command whose input could not be parsed. |
private static final long serialVersionUID
private final CommandLine commandLine
public ParameterException(CommandLine commandLine, java.lang.String msg)
commandLine
- the command or subcommand whose input was invalidmsg
- describes the problempublic ParameterException(CommandLine commandLine, java.lang.String msg, java.lang.Exception ex)
commandLine
- the command or subcommand whose input was invalidmsg
- describes the problemex
- the exception that caused this ParameterExceptionpublic CommandLine getCommandLine()
CommandLine
object for the (sub)command whose input could not be parsed.CommandLine
object for the (sub)command where parsing failed.private static CommandLine.ParameterException create(CommandLine cmd, java.lang.Exception ex, java.lang.String arg, int i, java.lang.String[] args)