|
||||||||||
| 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 java.util.Set |
HELP_SETTINGS
The settings used when displaying the related Option. |
private static ResourceHelper |
helper
resource helper instance |
private java.lang.String |
message
The message explaining the Exception |
private Option |
option
The Option the exception relates to |
| 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()
|
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
DisplaySettingprivate static final ResourceHelper helper
private final Option option
private final java.lang.String message
| 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 | |||||||||