public enum ApiCode extends Enum<ApiCode>
REST API 响应码
| Modifier and Type | Method and Description |
|---|---|
static ApiCode |
getApiCode(int code) |
int |
getCode() |
String |
getMsg() |
static ApiCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiCode SUCCESS
public static final ApiCode UNAUTHORIZED
public static final ApiCode NOT_PERMISSION
public static final ApiCode NOT_FOUND
public static final ApiCode FAIL
public static final ApiCode LOGIN_EXCEPTION
public static final ApiCode SYSTEM_EXCEPTION
public static final ApiCode PARAMETER_EXCEPTION
public static final ApiCode PARAMETER_PARSE_EXCEPTION
public static final ApiCode HTTP_MEDIA_TYPE_EXCEPTION
public static final ApiCode SPRING_BOOT_PLUS_EXCEPTION
public static final ApiCode BUSINESS_EXCEPTION
public static final ApiCode DAO_EXCEPTION
public static final ApiCode VERIFICATION_CODE_EXCEPTION
public static final ApiCode AUTHENTICATION_EXCEPTION
public static final ApiCode UNAUTHENTICATED_EXCEPTION
public static final ApiCode UNAUTHORIZED_EXCEPTION
public static ApiCode[] values()
for (ApiCode c : ApiCode.values()) System.out.println(c);
public static ApiCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ApiCode getApiCode(int code)
public int getCode()
public String getMsg()
Copyright © 2019. All rights reserved.