net.dpml.cli
Class OptionException
Exception
net.dpml.cli.OptionException
A problem found while dealing with command line options.
static Set | HELP_SETTINGS - The settings used when displaying the related Option.
|
HELP_SETTINGS
public static final Set HELP_SETTINGS
The settings used when displaying the related Option.
OptionException
public OptionException(Option option)
Creates a new OptionException.
option
- the Option the exception relates to
OptionException
public OptionException(Option option,
String messageKey)
Creates a new OptionException.
option
- the Option the exception relates tomessageKey
- the id of the message to display
OptionException
public OptionException(Option option,
String messageKey,
String value)
Creates a new OptionException.
option
- the Option the exception relates tomessageKey
- the id of the message to displayvalue
- a value to display with the message
getMessage
public String getMessage()
Return the exception message.
getOption
public Option getOption()
Gets the Option the exception relates to