public enum SystemCode extends Enum<SystemCode> implements IResultCode
| Enum Constant and Description |
|---|
BAD_GATEWAY
网关异常
|
DATA_ADD_FAILED
数据添加失败
|
DATA_DELETE_FAILED
数据删除失败
|
DATA_EXISTED
数据已存在
|
DATA_NOT_EXIST
数据不存在
|
DATA_UPDATE_FAILED
数据更新失败
|
FAILURE
系统未知异常
|
GATEWAY_FORBADE |
GATEWAY_TIMEOUT |
MEDIA_TYPE_NOT_ACCEPT
不接受的媒体类型
|
MEDIA_TYPE_NOT_SUPPORTED
不支持当前媒体类型
|
METHOD_NOT_SUPPORTED
不支持当前请求方法
|
MSG_NOT_READABLE
消息不能读取
|
NOT_FOUND
404 没找到请求
|
PARAM_BIND_ERROR
请求参数绑定错误
|
PARAM_MISS
缺少必要的请求参数
|
PARAM_TYPE_ERROR
请求参数类型错误
|
PARAM_VALID_ERROR
参数校验失败
|
REQ_REJECT
请求被拒绝
|
SERVICE_UNAVAILABLE |
SUCCESS
操作成功
|
| Modifier and Type | Field and Description |
|---|---|
static int |
BAD_GATEWAY_CODE
网关通用 code
|
static int |
DATA_ADD_FAILED_CODE |
static int |
DATA_DELETE_FAILED_CODE |
static int |
DATA_EXISTED_CODE |
static int |
DATA_NOT_EXIST_CODE
通用数据层 code
|
static int |
DATA_UPDATE_FAILED_CODE |
static int |
FAILURE_CODE
通用 异常 code
|
static int |
GATEWAY_FORBADE_CODE |
static int |
GATEWAY_TIMEOUT_CODE |
static int |
MEDIA_TYPE_NOT_ACCEPT_CODE |
static int |
MEDIA_TYPE_NOT_SUPPORTED_CODE |
static int |
METHOD_NOT_SUPPORTED_CODE |
static int |
MSG_NOT_READABLE_CODE |
static int |
NOT_FOUND_CODE |
static int |
PARAM_BIND_ERROR_CODE |
static int |
PARAM_MISS_CODE |
static int |
PARAM_TYPE_ERROR_CODE |
static int |
PARAM_VALID_ERROR_CODE |
static int |
REQ_REJECT_CODE |
static int |
SERVICE_UNAVAILABLE_CODE |
static int |
SUCCESS_CODE |
| Modifier and Type | Method and Description |
|---|---|
static SystemCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SystemCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetCode, getMsgpublic static final SystemCode FAILURE
public static final SystemCode SUCCESS
public static final SystemCode PARAM_MISS
public static final SystemCode PARAM_TYPE_ERROR
public static final SystemCode PARAM_BIND_ERROR
public static final SystemCode PARAM_VALID_ERROR
public static final SystemCode NOT_FOUND
public static final SystemCode MSG_NOT_READABLE
public static final SystemCode METHOD_NOT_SUPPORTED
public static final SystemCode MEDIA_TYPE_NOT_SUPPORTED
public static final SystemCode MEDIA_TYPE_NOT_ACCEPT
public static final SystemCode REQ_REJECT
public static final SystemCode BAD_GATEWAY
public static final SystemCode SERVICE_UNAVAILABLE
public static final SystemCode GATEWAY_TIMEOUT
public static final SystemCode GATEWAY_FORBADE
public static final SystemCode DATA_NOT_EXIST
public static final SystemCode DATA_EXISTED
public static final SystemCode DATA_ADD_FAILED
public static final SystemCode DATA_UPDATE_FAILED
public static final SystemCode DATA_DELETE_FAILED
public static final int FAILURE_CODE
public static final int SUCCESS_CODE
public static final int PARAM_MISS_CODE
public static final int PARAM_TYPE_ERROR_CODE
public static final int PARAM_BIND_ERROR_CODE
public static final int PARAM_VALID_ERROR_CODE
public static final int NOT_FOUND_CODE
public static final int MSG_NOT_READABLE_CODE
public static final int METHOD_NOT_SUPPORTED_CODE
public static final int MEDIA_TYPE_NOT_SUPPORTED_CODE
public static final int MEDIA_TYPE_NOT_ACCEPT_CODE
public static final int REQ_REJECT_CODE
public static final int BAD_GATEWAY_CODE
public static final int SERVICE_UNAVAILABLE_CODE
public static final int GATEWAY_TIMEOUT_CODE
public static final int GATEWAY_FORBADE_CODE
public static final int DATA_NOT_EXIST_CODE
public static final int DATA_EXISTED_CODE
public static final int DATA_ADD_FAILED_CODE
public static final int DATA_UPDATE_FAILED_CODE
public static final int DATA_DELETE_FAILED_CODE
public static SystemCode[] values()
for (SystemCode c : SystemCode.values()) System.out.println(c);
public static SystemCode 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 nullCopyright © 2024. All rights reserved.