public enum CommonEnum extends Enum<CommonEnum> implements BaseErrorInfo
| 枚举常量和说明 |
|---|
BODY_NOT_MATCH |
INTERNAL_SERVER_ERROR |
NOT_FOUND |
SERVER_BUSY |
SIGNATURE_NOT_MATCH |
SUCCESS |
UN_AUTHORITY |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getErrCode()
错误码
|
String |
getErrMsg()
错误描述
|
static CommonEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CommonEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CommonEnum SUCCESS
public static final CommonEnum BODY_NOT_MATCH
public static final CommonEnum SIGNATURE_NOT_MATCH
public static final CommonEnum NOT_FOUND
public static final CommonEnum INTERNAL_SERVER_ERROR
public static final CommonEnum SERVER_BUSY
public static final CommonEnum UN_AUTHORITY
public static CommonEnum[] values()
for (CommonEnum c : CommonEnum.values()) System.out.println(c);
public static CommonEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getErrCode()
BaseErrorInfogetErrCode 在接口中 BaseErrorInfopublic String getErrMsg()
BaseErrorInfogetErrMsg 在接口中 BaseErrorInfoCopyright © 2021. All rights reserved.