public enum CommonErrorCode extends Enum<CommonErrorCode> implements BaseErrorCode
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCode() |
String |
getName() |
static CommonErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CommonErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcheck, getApp, getModule, getRealApp, getRealApp, getRealCode, getRealModule, getRealModulepublic static final CommonErrorCode REQUEST_PARAM_ERROR
public static final CommonErrorCode UNAUTHORIZED
public static final CommonErrorCode LOGIN_TOKEN_IS_UPDATE
public static final CommonErrorCode LOGIN_STATUS_EXPIRE
public static final CommonErrorCode FORBIDDEN
public static final CommonErrorCode NOT_FOUND
public static final CommonErrorCode METHOD_NOT_SUPPORTED
public static final CommonErrorCode FILE_OVER_SIZE
public static final CommonErrorCode RESOURCE_LOCKED
public static final CommonErrorCode SERVER_LIMIT_CODE
public static final CommonErrorCode SYSTEM_ERROR
public static final CommonErrorCode SERVER_DOWNGRADE_CODE
public static CommonErrorCode[] values()
for (CommonErrorCode c : CommonErrorCode.values()) System.out.println(c);
public static CommonErrorCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getCode()
getCode 在接口中 BaseErrorCodepublic String getName()
getName 在接口中 BaseErrorCodeCopyright © 2022. All rights reserved.