public class InvalidCmdLineArgumentException extends RuntimeException
Indicates a problem parsing a command line argument.
Although args4j provides CmdLineException it is difficult to
construct one. As such, this exception is useful for implementing
OptionHandlers that detect and reject malformed
values.
| Constructor and Description |
|---|
InvalidCmdLineArgumentException(org.kohsuke.args4j.OptionDef optionDef,
Object optionValue,
String message) |
InvalidCmdLineArgumentException(String optionName,
Object optionValue,
String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidCmdLineArgumentException(org.kohsuke.args4j.OptionDef optionDef,
@Nullable
Object optionValue,
String message)
optionDef - The OptionDef describing the option being parsed.optionValue - The raw value of the option being parsed.message - A message describing how the optionValue is invalid.public InvalidCmdLineArgumentException(String optionName, @Nullable Object optionValue, String message)
optionName - The name of the option being parsed.optionValue - The raw value of the option being parsed.message - A message describing how the optionValue is invalid.