|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.dpml.cli.OptionException
A problem found while dealing with command line options.
Field Summary | |
static Set |
HELP_SETTINGS
The settings used when displaying the related Option. |
Constructor Summary | |
OptionException(Option option)
Creates a new OptionException. |
|
OptionException(Option option,
String messageKey)
Creates a new OptionException. |
|
OptionException(Option option,
String messageKey,
String value)
Creates a new OptionException. |
Method Summary | |
String |
getMessage()
Return the exception message. |
Option |
getOption()
Gets the Option the exception relates to |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Set HELP_SETTINGS
DisplaySetting
Constructor Detail |
public OptionException(Option option)
option
- the Option the exception relates topublic OptionException(Option option, String messageKey)
option
- the Option the exception relates tomessageKey
- the id of the message to displaypublic OptionException(Option option, String messageKey, String value)
option
- the Option the exception relates tomessageKey
- the id of the message to displayvalue
- a value to display with the messageMethod Detail |
public Option getOption()
public String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |