public static class CommandLine.ParameterException extends CommandLine.PicocliException
| Constructor and Description |
|---|
CommandLine.ParameterException(CommandLine commandLine,
java.lang.String msg)
Constructs a new ParameterException with the specified CommandLine and error message.
|
CommandLine.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 |
|---|---|
CommandLine |
getCommandLine()
Returns the
CommandLine object for the (sub)command whose input could not be parsed. |
public CommandLine.ParameterException(CommandLine commandLine, java.lang.String msg)
commandLine - the command or subcommand whose input was invalidmsg - describes the problempublic CommandLine.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.