Serializable
public abstract class OptionException extends RuntimeException
Modifier | Constructor | Description |
---|---|---|
protected |
OptionException(Collection<? extends OptionSpec<?>> options) |
|
protected |
OptionException(Collection<? extends OptionSpec<?>> options,
Throwable cause) |
|
protected |
OptionException(List<String> options) |
Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 © 2019. All rights reserved.