Class CmdLineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.kohsuke.args4j.CmdLineException
- All Implemented Interfaces:
Serializable
Signals an error in the user input.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCmdLineException(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
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CmdLineException
Deprecated. -
CmdLineException
Deprecated. -
CmdLineException
Deprecated. -
CmdLineException
-
CmdLineException
-
CmdLineException
-
CmdLineException
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
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.
-
CmdLineException(CmdLineParser, String)