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.Exception
Signals an error in the user input.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
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.String
getLocalizedMessage()
CmdLineParser
getParser()
Obtains theCmdLineParser
that triggered an exception.
-
-
-
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:
getLocalizedMessage
in classjava.lang.Throwable
-
getParser
public CmdLineParser getParser()
Obtains theCmdLineParser
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.
-
-