Package jargs.gnu
Class CmdLineParser.IllegalOptionValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jargs.gnu.CmdLineParser.OptionException
jargs.gnu.CmdLineParser.IllegalOptionValueException
- All Implemented Interfaces:
Serializable
- Enclosing class:
CmdLineParser
Thrown when an illegal or missing value is given by the user for an option that takes a value.
getMessage()
returns an error string suitable for reporting the error to the user (in English).- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIllegalOptionValueException
(CmdLineParser.Option opt, String value) Instantiates a new illegal option value exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalOptionValueException
Instantiates a new illegal option value exception.- Parameters:
opt
- the optvalue
- the value
-
-
Method Details
-
getOption
Gets the option.- Returns:
- the name of the option whose value was illegal (e.g. "-u")
-
getValue
-