Enum Constant and Description |
---|
INVALID_ENUM |
INVALID_OPERATION |
INVALID_VALUE |
NO_ERROR |
OUT_OF_MEMORY |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the enum's numerical value.
|
static ErrorCode |
parseErrorCode(int errorCode)
Parses an integer error code to its corresponding ErrorCode enum.
|
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode NO_ERROR
public static final ErrorCode INVALID_ENUM
public static final ErrorCode INVALID_VALUE
public static final ErrorCode INVALID_OPERATION
public static final ErrorCode OUT_OF_MEMORY
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static 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 namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
GLEnum
public static ErrorCode parseErrorCode(int errorCode)
errorCode
-