Class ArgumentParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sourceforge.argparse4j.inf.ArgumentParserException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HelpScreenException, UnrecognizedArgumentException, UnrecognizedCommandException
The exception thrown from
ArgumentParser.parseArgs(String[]) if error
occurred while processing command line argument. The argument parser
in constructor is the ArgumentParser object where an error occurred.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArgumentParserException(String message, Throwable cause, ArgumentParser parser) ArgumentParserException(String message, Throwable cause, ArgumentParser parser, Argument arg) ArgumentParserException(String message, ArgumentParser parser) ArgumentParserException(String message, ArgumentParser parser, Argument arg) ArgumentParserException(Throwable cause, ArgumentParser parser) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringformatMessage(String message, Argument arg, ArgumentParserConfiguration config) Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
parser_
-
-
Constructor Details
-
ArgumentParserException
-
ArgumentParserException
-
ArgumentParserException
-
ArgumentParserException
-
ArgumentParserException
-
ArgumentParserException
public ArgumentParserException(String message, Throwable cause, ArgumentParser parser, Argument arg)
-
-
Method Details
-
formatMessage
private static String formatMessage(String message, Argument arg, ArgumentParserConfiguration config) -
getParser
-