|
||||||||||
| 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
public class OptionException
A problem found while dealing with command line options.
| Field Summary | |
|---|---|
static java.util.Set |
HELP_SETTINGS
The settings used when displaying the related Option. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.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 java.util.Set HELP_SETTINGS
DisplaySetting| Constructor Detail |
|---|
public OptionException(Option option)
option - the Option the exception relates to
public OptionException(Option option,
java.lang.String messageKey)
option - the Option the exception relates tomessageKey - the id of the message to display
public 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 message| Method Detail |
|---|
public Option getOption()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||