Package jargs.gnu
Class CmdLineParser.UnknownOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jargs.gnu.CmdLineParser.OptionException
jargs.gnu.CmdLineParser.UnknownOptionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CmdLineParser.NotFlagException
,CmdLineParser.UnknownSuboptionException
- Enclosing class:
CmdLineParser
Thrown when the parsed command-line contains an option that is not recognised.
getMessage()
returns
an error string suitable for reporting the error to the user (in English).- See Also:
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getOptionName
Gets the option name.- Returns:
- the name of the option that was unknown (e.g. "-u")
-