public abstract class OptionException extends RuntimeException
Modifier | Constructor and Description |
---|---|
protected |
OptionException(Collection<String> options) |
protected |
OptionException(Collection<String> options,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
protected String |
multipleOptionMessage() |
Collection<String> |
options()
Gives the option being considered when the exception was created.
|
protected String |
singleOptionMessage() |
protected String |
singleOptionMessage(String option) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected OptionException(Collection<String> options)
protected OptionException(Collection<String> options, Throwable cause)
public Collection<String> options()
protected final String singleOptionMessage()
protected final String multipleOptionMessage()
Copyright © 2014. All rights reserved.