public interface ServerCodes
| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_NO_CHANGE
代表缓存数据未变更
|
static int |
EXECUTE_SUCCESS
代表请求执行成功
|
static int |
EXISTED_RESOURCE
资源已经存在,无需重复注册
|
static int |
NOT_FOUND_RESOURCE
资源不存在
|
static int |
NOT_FOUND_SERVICE
服务不存在
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
convertServerErrorToRpcError(int code)
将server错误码转换为内部服务错误
|
static int |
toHttpCode(int code)
转换为http格式的返回码
|
static final int EXECUTE_SUCCESS
static final int DATA_NO_CHANGE
static final int EXISTED_RESOURCE
static final int NOT_FOUND_RESOURCE
static final int NOT_FOUND_SERVICE
static int toHttpCode(int code)
code - http codestatic ErrorCode convertServerErrorToRpcError(int code)
code - server错误码Copyright © 2023. All rights reserved.