Package joptsimple
Class OptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
joptsimple.OptionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IllegalOptionSpecificationException
,MissingRequiredOptionsException
,MultipleArgumentsForOptionException
,OptionArgumentConversionException
,OptionMissingRequiredArgumentException
,UnavailableOptionException
,UnconfiguredOptionException
,UnrecognizedOptionException
Thrown when a problem occurs during option parsing.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OptionException
(Collection<? extends OptionSpec<?>> options) protected
OptionException
(Collection<? extends OptionSpec<?>> options, Throwable cause) protected
OptionException
(List<String> options) -
Method Summary
Modifier and TypeMethodDescriptionprivate String
formattedMessage
(Locale locale) final String
(package private) final String
localizedMessage
(Locale locale) (package private) abstract Object[]
protected final String
options()
Gives the option being considered when the exception was created.protected final String
protected final String
singleOptionString
(String option) specsToStrings
(Collection<? extends OptionSpec<?>> options) private String
specToString
(OptionSpec<?> option) (package private) static OptionException
unrecognizedOption
(String option) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
options
-
-
Constructor Details
-
OptionException
-
OptionException
-
OptionException
-
-
Method Details
-
specsToStrings
-
specToString
-
options
Gives the option being considered when the exception was created.- Returns:
- the option being considered when the exception was created
-
singleOptionString
-
singleOptionString
-
multipleOptionString
-
unrecognizedOption
-
getMessage
- Overrides:
getMessage
in classThrowable
-
localizedMessage
-
formattedMessage
-
messageArguments
-