Serializable
CommandLine.MaxValuesforFieldExceededException
, CommandLine.MissingParameterException
, CommandLine.MissingTypeConverterException
, CommandLine.OverwrittenOptionException
, CommandLine.UnmatchedArgumentException
public static class CommandLine.ParameterException extends CommandLine.PicocliException
Constructor | 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 | Description |
---|---|---|
CommandLine |
getCommandLine() |
Returns the
CommandLine object for the (sub)command whose input could not be parsed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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-2018. 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.