public final class OptionException extends Exception
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionException.Type
Defines the types of
OptionException that exist. |
| Modifier and Type | Field and Description |
|---|---|
protected static ResourceBundle |
baseBundle
Resources for internationalisation (for base locale).
|
protected static ResourceBundle |
bundle
Resources for internationalization.
|
protected static Locale |
locale
Locale for help/error display. |
| Constructor and Description |
|---|
OptionException(OptionException.Type type,
Option option)
Creates a new
OptionException instance. |
OptionException(OptionException.Type type,
Option option,
String optionValue)
Creates a new
OptionException instance. |
OptionException(OptionException.Type type,
String optionName)
Creates a new
OptionException instance. |
OptionException(OptionException.Type type,
String optionName,
char flag)
Creates a new
OptionException instance. |
OptionException(OptionException.Type type,
String optionName,
String optionValue)
Creates a new
OptionException instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage() |
String |
getMessage() |
OptionException.Type |
getType()
Returns the type of this
OptionException. |
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected static final Locale locale
Locale for help/error display.protected static final ResourceBundle bundle
protected static final ResourceBundle baseBundle
public OptionException(OptionException.Type type, Option option, String optionValue)
OptionException instance.type - type of OptionException to create (i.e. reason)option - Option instance for which this exception is being createdoptionValue - value of the option for which this exception is being createdpublic OptionException(OptionException.Type type, String optionName, String optionValue)
OptionException instance.type - type of OptionException to create (i.e. reason)optionName - name of the option for which this exception is being createdoptionValue - value of the option for which this exception is being createdpublic OptionException(OptionException.Type type, String optionName, char flag)
OptionException instance.type - type of OptionException to create (i.e. reason)optionName - name of the option for which this exception is being createdflag - flag character for which this exception is being createdpublic OptionException(OptionException.Type type, Option option)
OptionException instance.type - type of OptionException to create (i.e. reason)option - Option instance for which this exception is being createdpublic OptionException(OptionException.Type type, String optionName)
OptionException instance.type - type of OptionException to create (i.e. reason)optionName - name of the option for which this exception is being createdpublic OptionException.Type getType()
OptionException.public String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class ThrowableCopyright © 2013. All rights reserved.