public static enum OptionException.Type extends Enum<OptionException.Type>
OptionException that exist.| Enum Constant and Description |
|---|
ILLEGAL_OPTION_VALUE
Thrown for illegal/missing value in value-requiring option.
|
INVALID_OPTION_COUNT
Thrown for invalid option value count.
|
INVALID_OPTION_VALUE_COUNT
Thrown for trying to assign an invalid number of value to option.
|
INVALID_RETRIEVAL_TYPE
Thrown for trying to retrieve single value for multiple value option.
|
NOT_FLAG
Thrown for value-requiring option in concatenated short options.
|
OPTION_HAS_VALUE
Thrown for trying to reassign value to single-value option.
|
UNKNOWN_FLAG
Thrown for unknown flag in concatenated short options.
|
UNKNOWN_OPTION
Thrown for unrecognized option.
|
| Modifier and Type | Method and Description |
|---|---|
static OptionException.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptionException.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptionException.Type INVALID_RETRIEVAL_TYPE
public static final OptionException.Type UNKNOWN_OPTION
public static final OptionException.Type UNKNOWN_FLAG
public static final OptionException.Type NOT_FLAG
public static final OptionException.Type ILLEGAL_OPTION_VALUE
public static final OptionException.Type INVALID_OPTION_COUNT
public static final OptionException.Type OPTION_HAS_VALUE
public static final OptionException.Type INVALID_OPTION_VALUE_COUNT
public static OptionException.Type[] values()
for (OptionException.Type c : OptionException.Type.values()) System.out.println(c);
public static OptionException.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017. All rights reserved.