public enum ErrorType extends Enum<ErrorType>
| 枚举常量和说明 |
|---|
DATA_LOCK |
DB_CLOSE |
EMPTY |
NOT_EXIST |
NOT_TX_DB |
NULL |
PARAM_ERROR |
REPEATED_KEY |
RETAIN_KEY |
STORE_VERSION |
STROE_ERROR |
TX_ERROR |
TX_GET_TIMEOUT |
TX_NOT_START |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
contains(String type) |
static ErrorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ErrorType STROE_ERROR
public static final ErrorType RETAIN_KEY
public static final ErrorType DATA_LOCK
public static final ErrorType REPEATED_KEY
public static final ErrorType EMPTY
public static final ErrorType NULL
public static final ErrorType PARAM_ERROR
public static final ErrorType STORE_VERSION
public static final ErrorType NOT_EXIST
public static final ErrorType NOT_TX_DB
public static final ErrorType TX_NOT_START
public static final ErrorType TX_ERROR
public static final ErrorType TX_GET_TIMEOUT
public static final ErrorType DB_CLOSE
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static boolean contains(String type)
Copyright © 2019. All rights reserved.