public enum CollectionsErrorReasons extends java.lang.Enum<CollectionsErrorReasons>
Enum Constant and Description |
---|
ELEMENT_NOT_FOUND
The element not found error message reason
|
INDEX_OUT_OF_BOUNDS
The index out of bounds error message reason
|
INVALID_KEY
The invalid key error message reason
|
KEY_NOT_UNIQUE
Key is not unique in collection error message reason
|
TYPE_MISMATCH
The type mismatch the error message reason
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
reason
The error description
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReason()
Returns the error description.
|
static CollectionsErrorReasons |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CollectionsErrorReasons[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollectionsErrorReasons INDEX_OUT_OF_BOUNDS
public static final CollectionsErrorReasons INVALID_KEY
public static final CollectionsErrorReasons KEY_NOT_UNIQUE
public static final CollectionsErrorReasons TYPE_MISMATCH
public static final CollectionsErrorReasons ELEMENT_NOT_FOUND
public static CollectionsErrorReasons[] values()
for (CollectionsErrorReasons c : CollectionsErrorReasons.values()) System.out.println(c);
public static CollectionsErrorReasons 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getReason()