public class OptionException extends Exception
Modifier and Type | Field and Description |
---|---|
static Set |
HELP_SETTINGS
The settings used when displaying the related Option.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Option |
getOption()
Gets the Option the exception relates to
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final Set HELP_SETTINGS
DisplaySetting
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 messagepublic Option getOption()
public String getMessage()
getMessage
in class Throwable
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.