Package org.kohsuke.args4j
Class CmdLineException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.kohsuke.args4j.CmdLineException
-
- All Implemented Interfaces:
Serializable
public class CmdLineException extends Exception
Signals an error in the user input.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmdLineException(String message)
Deprecated.CmdLineException(String message, Throwable cause)
Deprecated.CmdLineException(Throwable cause)
Deprecated.CmdLineException(CmdLineParser parser, String message)
CmdLineException(CmdLineParser parser, String message, Throwable cause)
CmdLineException(CmdLineParser parser, Throwable cause)
CmdLineException(CmdLineParser parser, Localizable message, String... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizedMessage()
CmdLineParser
getParser()
Obtains theCmdLineParser
that triggered an exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CmdLineException
public CmdLineException(String message)
Deprecated.
-
CmdLineException
public CmdLineException(Throwable cause)
Deprecated.
-
CmdLineException
public CmdLineException(CmdLineParser parser, Localizable message, String... args)
-
CmdLineException
public CmdLineException(CmdLineParser parser, String message)
-
CmdLineException
public CmdLineException(CmdLineParser parser, String message, Throwable cause)
-
CmdLineException
public CmdLineException(CmdLineParser parser, Throwable cause)
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classThrowable
-
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.
-
-