Package org.kohsuke.args4j
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The optional localized message.private CmdLineParser
private static final long
-
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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
parser
-
localizedMessage
The optional localized message.- See Also:
-
-
Constructor Details
-
CmdLineException
Deprecated. -
CmdLineException
Deprecated. -
CmdLineException
Deprecated. -
CmdLineException
-
CmdLineException
-
CmdLineException
-
CmdLineException
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessage
in classThrowable
-
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.
-
CmdLineException(CmdLineParser, String)