|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ArgsParserException.ErrorCode>
bcds.tools.ArgsParserException.ErrorCode
public static enum ArgsParserException.ErrorCode
Lists the error codes that ArgsParser
can include in an
ArgsParserException
as an indication of the cause of the error.
Enum Constant Summary | |
---|---|
ARG_EXPECTED
There is a missing argument for a non-boolean option. |
|
BAD_ENUM
An option's argument does not belong to the given enumeration. |
|
BAD_OPTION_ID
The option requested does not exist, generally caused by a programming error. |
|
BAD_USAGE
A generic exception, never raised from within ArgsParser. |
|
BAD_VALUE
The option's argument cannot be converted to the requested type. |
|
FILE_IO
IO error reading a file (for example, when reading options). |
|
GENERIC
A catch-all error code, generally used to indicate programming error. |
|
NON_UNIQUE_OPTION
The option (as given by the user) appears more than once. |
|
UNREGISTERED_OPTION
The user-provided argument is unknown, that is, the programmer did not "register" such option (the option does not exist). |
Method Summary | |
---|---|
static ArgsParserException.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ArgsParserException.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ArgsParserException.ErrorCode BAD_OPTION_ID
public static final ArgsParserException.ErrorCode UNREGISTERED_OPTION
public static final ArgsParserException.ErrorCode BAD_VALUE
public static final ArgsParserException.ErrorCode BAD_ENUM
public static final ArgsParserException.ErrorCode ARG_EXPECTED
public static final ArgsParserException.ErrorCode NON_UNIQUE_OPTION
public static final ArgsParserException.ErrorCode BAD_USAGE
public static final ArgsParserException.ErrorCode FILE_IO
public static final ArgsParserException.ErrorCode GENERIC
Method Detail |
---|
public static ArgsParserException.ErrorCode[] values()
for (ArgsParserException.ErrorCode c : ArgsParserException.ErrorCode.values()) System.out.println(c);
public static ArgsParserException.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |