Package joptsimple
Class OptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
joptsimple.OptionException
- All Implemented Interfaces:
Serializable
Thrown when a problem occurs during option parsing.
- Author:
- Paul Holser
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OptionException
(Collection<? extends OptionSpec<?>> options) protected
OptionException
(Collection<? extends OptionSpec<?>> options, Throwable cause) protected
OptionException
(List<String> options) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OptionException
-
OptionException
-
OptionException
-
-
Method Details
-
options
Gives the option being considered when the exception was created.- Returns:
- the option being considered when the exception was created
-
singleOptionString
-
singleOptionString
-
multipleOptionString
-
getMessage
- Overrides:
getMessage
in classThrowable
-