public class CmdLineException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
localizedMessage
The optional localized message.
|
private CmdLineParser |
parser |
private static long |
serialVersionUID |
Constructor and Description |
---|
CmdLineException(CmdLineParser parser,
Localizable message,
java.lang.String... args) |
CmdLineException(CmdLineParser parser,
java.lang.String message)
|
CmdLineException(CmdLineParser parser,
java.lang.String message,
java.lang.Throwable cause) |
CmdLineException(CmdLineParser parser,
java.lang.Throwable cause) |
CmdLineException(java.lang.String message)
Deprecated.
|
CmdLineException(java.lang.String message,
java.lang.Throwable cause)
Deprecated.
|
CmdLineException(java.lang.Throwable cause)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage() |
CmdLineParser |
getParser()
Obtains the
CmdLineParser that triggered an exception. |
private static final long serialVersionUID
private CmdLineParser parser
private java.lang.String localizedMessage
Throwable.getLocalizedMessage()
public CmdLineException(java.lang.String message)
CmdLineException(CmdLineParser, String)
public CmdLineException(java.lang.String message, java.lang.Throwable cause)
CmdLineException(CmdLineParser, String, Throwable)
public CmdLineException(java.lang.Throwable cause)
CmdLineException(CmdLineParser, Throwable)
public CmdLineException(CmdLineParser parser, Localizable message, java.lang.String... args)
public CmdLineException(CmdLineParser parser, java.lang.String message)
public CmdLineException(CmdLineParser parser, java.lang.String message, java.lang.Throwable cause)
public CmdLineException(CmdLineParser parser, java.lang.Throwable cause)
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public CmdLineParser getParser()
CmdLineParser
that triggered an exception.
Unless you have legacy OptionHandler
that doesn't pass in this information
when it throws an exception, this method should always return a non-null value.