public class InvalidCmdLineArgumentException
extends java.lang.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,
java.lang.Object optionValue,
java.lang.String message) |
InvalidCmdLineArgumentException(java.lang.String optionName,
java.lang.Object optionValue,
java.lang.String message) |
public InvalidCmdLineArgumentException(org.kohsuke.args4j.OptionDef optionDef,
@Nullable
java.lang.Object optionValue,
java.lang.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(java.lang.String optionName,
@Nullable
java.lang.Object optionValue,
java.lang.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.