public abstract class OptionException extends RuntimeException
Modifier | Constructor and Description |
---|---|
protected |
OptionException(Collection<? extends OptionSpec<?>> options) |
protected |
OptionException(Collection<? extends OptionSpec<?>> options,
Throwable cause) |
protected |
OptionException(List<String> options) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
protected String |
multipleOptionString() |
List<String> |
options()
Gives the option being considered when the exception was created.
|
protected String |
singleOptionString() |
protected String |
singleOptionString(String option) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected OptionException(Collection<? extends OptionSpec<?>> options)
protected OptionException(Collection<? extends OptionSpec<?>> options, Throwable cause)
public List<String> options()
protected final String singleOptionString()
protected final String multipleOptionString()
public final String getMessage()
getMessage
in class Throwable
Copyright © 2016. All Rights Reserved.