public static class CommandLine.ParameterException extends CommandLine.PicocliException
Constructor and Description |
---|
ParameterException(CommandLine commandLine,
String msg)
Constructs a new ParameterException with the specified CommandLine and error message.
|
ParameterException(CommandLine commandLine,
String msg,
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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParameterException(CommandLine commandLine, String msg)
commandLine
- the command or subcommand whose input was invalidmsg
- describes the problempublic ParameterException(CommandLine commandLine, String msg, 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. Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.