Package org.kohsuke.args4j
Class CmdLineException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.kohsuke.args4j.CmdLineException
-
- All Implemented Interfaces:
java.io.Serializable
public class CmdLineException extends java.lang.ExceptionSignals an error in the user input.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringlocalizedMessageThe optional localized message.private CmdLineParserparserprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CmdLineException(java.lang.String message)Deprecated.CmdLineException(java.lang.String message, java.lang.Throwable cause)Deprecated.CmdLineException(java.lang.Throwable cause)Deprecated.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(CmdLineParser parser, Localizable message, java.lang.String... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLocalizedMessage()CmdLineParsergetParser()Obtains theCmdLineParserthat triggered an exception.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
parser
private CmdLineParser parser
-
localizedMessage
private java.lang.String localizedMessage
The optional localized message.- See Also:
Throwable.getLocalizedMessage()
-
-
Constructor Detail
-
CmdLineException
public CmdLineException(java.lang.String message)
Deprecated.
-
CmdLineException
public CmdLineException(java.lang.String message, java.lang.Throwable cause)Deprecated.
-
CmdLineException
public CmdLineException(java.lang.Throwable cause)
Deprecated.
-
CmdLineException
public CmdLineException(CmdLineParser parser, Localizable message, java.lang.String... args)
-
CmdLineException
public CmdLineException(CmdLineParser parser, java.lang.String message)
-
CmdLineException
public CmdLineException(CmdLineParser parser, java.lang.String message, java.lang.Throwable cause)
-
CmdLineException
public CmdLineException(CmdLineParser parser, java.lang.Throwable cause)
-
-
Method Detail
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classjava.lang.Throwable
-
getParser
public CmdLineParser getParser()
Obtains theCmdLineParserthat triggered an exception.Unless you have legacy
OptionHandlerthat doesn't pass in this information when it throws an exception, this method should always return a non-null value.
-
-