public enum ExceptionCode extends Enum<ExceptionCode> implements BaseExceptionCode
| 限定符和类型 | 方法和说明 |
|---|---|
ExceptionCode |
build(String msg,
Object... param) |
int |
getCode()
异常编码
|
String |
getMsg()
异常消息
|
ExceptionCode |
param(Object... param) |
static ExceptionCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ExceptionCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ExceptionCode SUCCESS
public static final ExceptionCode SYSTEM_BUSY
public static final ExceptionCode SYSTEM_TIMEOUT
public static final ExceptionCode PARAM_EX
public static final ExceptionCode SQL_EX
public static final ExceptionCode NULL_POINT_EX
public static final ExceptionCode ILLEGAL_ARGUMENT_EX
public static final ExceptionCode MEDIA_TYPE_EX
public static final ExceptionCode LOAD_RESOURCES_ERROR
public static final ExceptionCode BASE_VALID_PARAM
public static final ExceptionCode OPERATION_EX
public static final ExceptionCode SERVICE_MAPPER_ERROR
public static final ExceptionCode CAPTCHA_ERROR
public static final ExceptionCode JSON_PARSE_ERROR
public static final ExceptionCode OK
public static final ExceptionCode BAD_REQUEST
public static final ExceptionCode UNAUTHORIZED
401 Unauthorized.public static final ExceptionCode FORBIDDEN
public static final ExceptionCode NOT_FOUND
404 Not Found.public static final ExceptionCode METHOD_NOT_ALLOWED
public static final ExceptionCode TOO_MANY_REQUESTS
public static final ExceptionCode INTERNAL_SERVER_ERROR
public static final ExceptionCode BAD_GATEWAY
public static final ExceptionCode GATEWAY_TIMEOUT
public static final ExceptionCode REQUIRED_FILE_PARAM_EX
public static final ExceptionCode DATA_SAVE_ERROR
public static final ExceptionCode DATA_UPDATE_ERROR
public static final ExceptionCode TOO_MUCH_DATA_ERROR
public static final ExceptionCode JWT_BASIC_INVALID
public static final ExceptionCode JWT_TOKEN_EXPIRED
public static final ExceptionCode JWT_SIGNATURE
public static final ExceptionCode JWT_ILLEGAL_ARGUMENT
public static final ExceptionCode JWT_GEN_TOKEN_FAIL
public static final ExceptionCode JWT_PARSER_TOKEN_FAIL
public static final ExceptionCode JWT_USER_INVALID
public static final ExceptionCode JWT_USER_ENABLED
public static final ExceptionCode JWT_OFFLINE
public static final ExceptionCode JWT_NOT_LOGIN
public static ExceptionCode[] values()
for (ExceptionCode c : ExceptionCode.values()) System.out.println(c);
public static ExceptionCode valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getCode()
BaseExceptionCodegetCode 在接口中 BaseExceptionCodepublic String getMsg()
BaseExceptionCodegetMsg 在接口中 BaseExceptionCodepublic ExceptionCode build(String msg, Object... param)
public ExceptionCode param(Object... param)
Copyright © 2021. All rights reserved.