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
ConstructorsModifierConstructorDescriptionprotectedOptionException(Collection<? extends OptionSpec<?>> options) protectedOptionException(Collection<? extends OptionSpec<?>> options, Throwable cause) protectedOptionException(List<String> options) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringformattedMessage(Locale locale) final String(package private) final StringlocalizedMessage(Locale locale) (package private) abstract Object[]protected final Stringoptions()Gives the option being considered when the exception was created.protected final Stringprotected final StringsingleOptionString(String option) specsToStrings(Collection<? extends OptionSpec<?>> options) private StringspecToString(OptionSpec<?> option) (package private) static OptionExceptionunrecognizedOption(String option) Methods inherited from class 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
-
singleOptionString
-
singleOptionString
-
multipleOptionString
-
unrecognizedOption
-
getMessage
- Overrides:
getMessagein classThrowable
-
localizedMessage
-
formattedMessage
-
messageArguments
-