| 枚举常量和说明 |
|---|
ADMIN_CANNOT_DELETE |
OLD_PASSWORD_ERROR |
USER_EXIST |
USER_NOT_EXIST |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getDescription() |
int |
getValue() |
static UserError |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static UserError[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final UserError USER_EXIST
public static final UserError USER_NOT_EXIST
public static final UserError OLD_PASSWORD_ERROR
public static final UserError ADMIN_CANNOT_DELETE
public static UserError[] values()
for (UserError c : UserError.values()) System.out.println(c);
public static UserError valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int getValue()
getValue 在接口中 com.github.faster.framework.core.exception.model.ErrorCodepublic java.lang.String getDescription()
getDescription 在接口中 com.github.faster.framework.core.exception.model.ErrorCode