public static enum BizErrorCode.UserErrorType extends Enum<BizErrorCode.UserErrorType> implements IException
| 枚举常量和说明 |
|---|
USER_ACCOUNT_ERROR |
USER_ACCOUNT_FORBIDDEN |
USER_HAS_EXIST |
USER_NOT_EXIST |
USER_NOT_LOGGED_IN |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCode()
获取错误码
|
String |
getMessage()
获取错误描述
|
void |
setCode(String code) |
void |
setMessage(String message) |
String |
toString() |
static BizErrorCode.UserErrorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BizErrorCode.UserErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BizErrorCode.UserErrorType USER_NOT_EXIST
public static final BizErrorCode.UserErrorType USER_NOT_LOGGED_IN
public static final BizErrorCode.UserErrorType USER_ACCOUNT_ERROR
public static final BizErrorCode.UserErrorType USER_ACCOUNT_FORBIDDEN
public static final BizErrorCode.UserErrorType USER_HAS_EXIST
public static BizErrorCode.UserErrorType[] values()
for (BizErrorCode.UserErrorType c : BizErrorCode.UserErrorType.values()) System.out.println(c);
public static BizErrorCode.UserErrorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getCode()
IExceptiongetCode 在接口中 IExceptionpublic void setCode(String code)
public String getMessage()
IExceptiongetMessage 在接口中 IExceptionpublic void setMessage(String message)
public String toString()
toString 在类中 Enum<BizErrorCode.UserErrorType>Copyright © 2020. All rights reserved.