public enum ErrorCategory extends java.lang.Enum<ErrorCategory>
| 枚举常量和说明 |
|---|
DUPLICATE_KEY
A duplicate key error
|
EXECUTION_TIMEOUT
An execution timeout error
|
UNCATEGORIZED
An uncategorized error
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ErrorCategory |
fromErrorCode(int code)
Translate an error code into an error category
|
static ErrorCategory |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorCategory[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ErrorCategory UNCATEGORIZED
public static final ErrorCategory DUPLICATE_KEY
public static final ErrorCategory EXECUTION_TIMEOUT
public static ErrorCategory[] values()
for (ErrorCategory c : ErrorCategory.values()) System.out.println(c);
public static ErrorCategory valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static ErrorCategory fromErrorCode(int code)
code - the error code