|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.commons.cli2.OptionException
public class 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()
|
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 to
public OptionException(Option option,
String messageKey)
option - the Option the exception relates tomessageKey - the id of the message to display
public 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 message| Method Detail |
|---|
public Option getOption()
public String getMessage()
getMessage in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||