public class OptionException extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set |
HELP_SETTINGS
The settings used when displaying the related Option.
|
| Constructor and Description |
|---|
OptionException(Option option)
Creates a new OptionException.
|
OptionException(Option option,
java.lang.String messageKey)
Creates a new OptionException.
|
OptionException(Option option,
java.lang.String messageKey,
java.lang.String value)
Creates a new OptionException.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage()
Return the exception message.
|
Option |
getOption()
Gets the Option the exception relates to
|
public static final java.util.Set HELP_SETTINGS
DisplaySettingpublic OptionException(Option option)
option - the Option the exception relates topublic OptionException(Option option, java.lang.String messageKey)
option - the Option the exception relates tomessageKey - the id of the message to displaypublic OptionException(Option option, java.lang.String messageKey, java.lang.String value)
option - the Option the exception relates tomessageKey - the id of the message to displayvalue - a value to display with the messagepublic Option getOption()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable