util
Class CommandLineParser.InvalidCommandLineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
util.CommandLineParser.InvalidCommandLineException
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- CommandLineParser<Opt extends Enum<Opt> & CommandLineParser.OptionSpec<? super Cxt>,Cxt>
public static class CommandLineParser.InvalidCommandLineException
- extends Exception
Exception thrown by CommandLineParser.parse(Object, String[])
on
invalid command-line input.
Objects of this class are only constructed directly by parse() itself;
an CommandLineParser.OptionSpec
enum throws CommandLineParser.OptionSpec.OptionException
exceptions, which are then reformatted by parse().
- See Also:
- Serialized Form
Field Summary |
String |
arg
The argument to the erroneous option, or null if there was
no such. |
Enum |
opt
The option in which the error occurred, or null if the error
was associated with no particular option. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
opt
public final Enum opt
- The option in which the error occurred, or
null
if the error
was associated with no particular option.
arg
public final String arg
- The argument to the erroneous option, or
null
if there was
no such.