public class CommandLineParser.InvalidOptionsException extends Exception
Constructor and Description |
---|
InvalidOptionsException(CommandLineParser parser,
String msg)
An error occurred while parsing the command line arguments.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getArgs()
Get the command line arguments that could not be parsed.
|
String |
getHelp()
Get the help string that describes the syntax required by the
options class and a desciption of each option supported.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidOptionsException(CommandLineParser parser, String msg)
parser
- The parser class that encountered an error when
parsing the command line arguments.msg
- A non-localized string description of the error.public String[] getArgs()
public String getHelp()
Copyright © 2003, 2023, Oracle and/or its affiliates.