public interface ErrorCode
如:10001(10代表系统模块,001代表业务代码)
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
FAILED
操作失败
|
static int |
FORBIDDEN
拒绝访问,没有权限
|
static int |
INTERNAL_SERVER_ERROR
服务器内部异常
|
static int |
INVALID_SYMBOL
不能包含非法字符
|
static int |
JSON_FORMAT_ERROR
参数格式不正确,请使用JSON格式
|
static int |
NOT_NULL
不能为空
|
static int |
PARAMS_GET_ERROR
获取参数失败
|
static int |
SUCCESS
成功
|
static int |
TOKEN_INVALID
token失效,请重新登录
|
static int |
VALIDATE_FAILED
参数校验失败
|
static final int SUCCESS
static final int FAILED
static final int VALIDATE_FAILED
static final int INTERNAL_SERVER_ERROR
static final int FORBIDDEN
static final int NOT_NULL
static final int PARAMS_GET_ERROR
static final int TOKEN_INVALID
static final int INVALID_SYMBOL
static final int JSON_FORMAT_ERROR
Copyright © 2020. All rights reserved.