NIMSDK-AOS  10.8.30
ResponseCode.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk;
2 
3 /**
4  * 云信服务器主要响应码定义
5  */
6 public final class ResponseCode {
7 
8  /**
9  * 操作成功
10  */
11  public static final short RES_SUCCESS = 200;
12 
13  /**
14  * 密码不正确
15  */
16  public static final short RES_EUIDPASS = 302;
17 
18  /**
19  * 登录IP或MAC被禁
20  */
21  public static final short RES_ADDR_BLOCKED = 310;
22 
23  /**
24  * 内部帐户不允许在该地址登陆
25  */
26  public static final short RES_IP_NOT_ALLOWED = 315;
27 
28  /**
29  * 版本号太旧,需要升级
30  */
31  public static final short RES_VERSION_EXPIRED = 317;
32 
33  public static final short RES_NEED_RECONNECT2 = 398;
34  /**
35  * 需要重连
36  * 不在ResponseDispatcherPush#makeResponse中传给主进程,在其他地方直接通过RemoteAgent#response上抛
37  */
38  public static final short RES_NEED_RECONNECT = 398;
39 
40  /**
41  * 需要切换LBS
42  * 不在ResponseDispatcherPush#makeResponse中传给主进程,在其他地方直接通过RemoteAgent#response上抛
43  */
44  public static final short RES_NEED_CHANGE_LBS = 399;
45 
46  /**
47  * 应用被封禁
48  */
49  public static final short RES_FORBIDDEN = 403;
50 
51  /**
52  * 目标(对象或用户)不存在
53  */
54  public static final short RES_ENONEXIST = 404;
55  /**
56  * 数据自上次查询以来未发生变化
57  */
58  public static final short RES_NO_CHANGE = 406;
59 
60  /**
61  * 操作超时
62  */
63  public static final short RES_ETIMEOUT = 408;
64 
65  /**
66  * 参数错误
67  */
68  public static final short RES_EPARAM = 414;
69 
70  /**
71  * 网络连接出现问题
72  */
73  public static final short RES_ECONNECTION = 415;
74 
75  /**
76  * 操作太过频繁
77  */
78  public static final short RES_EFREQUENTLY = 416;
79 
80  /**
81  * 对象已经存在
82  */
83  public static final short RES_EEXIST = 417;
84 
85  /**
86  * 帐号被禁用
87  */
88  public static final short RES_ACCOUNT_BLOCK = 422;
89 
90  /**
91  * 设备不在信任设备表里
92  */
93  public static final short RES_DEVICE_NOT_TRUST = 431;
94  /**
95  * 重复操作
96  */
97  public static final short RES_OPERATION_DUPLICATE = 464;
98  /**
99  * 操作已完成,当前请求无效
100  */
101  public static final short RES_OPERATION_ALREADY_COMPLETED = 465;
102 
103  /**
104  * 服务器内部错误
105  */
106  public static final short RES_EUNKNOWN = 500;
107 
108  /**
109  * 操作数据库失败
110  */
111  public static final short RES_DB_EXCEPTION = 502;
112 
113  /**
114  * 服务器太忙
115  */
116  public static final short RES_TOOBUZY = 503;
117 
118  /**
119  * 超过期限
120  */
121  public static final short RES_OVERDUE = 508;
122 
123  /**
124  * 已经失效
125  */
126  public static final short RES_INVALID = 509;
127 
128  /**
129  * 红包功能不可用
130  */
131  public static final short RES_RP_INVALID = 515;
132 
133  /**
134  * 清空会话未读数部分成功
135  */
136  public static final short RES_CLEAR_UNREAD_PART_SUCCESS = 700;
137 
138  // 群错误码
139  /**
140  * 已达到人数限制
141  */
142  public static final short RES_TEAM_ECOUNT_LIMIT = 801;
143 
144  /**
145  * 没有权限
146  */
147  public static final short RES_TEAM_ENACCESS = 802;
148 
149  /**
150  * 群不存在
151  */
152  public static final short RES_TEAM_ENOTEXIST = 803;
153 
154  /**
155  * 用户不在群里面
156  */
157  public static final short RES_TEAM_EMEMBER_NOTEXIST = 804;
158 
159  /**
160  * 群类型不对
161  */
162  public static final short RES_TEAM_ERR_TYPE = 805;
163 
164  /**
165  * 群数量达到上限
166  */
167  public static final short RES_TEAM_LIMIT = 806;
168 
169  /**
170  * 群成员状态不对
171  */
172  public static final short RES_TEAM_USER_STATUS_ERR = 807;
173 
174  /**
175  * 申请成功
176  */
177  public static final short RES_TEAM_APPLY_SUCCESS = 808;
178 
179  /**
180  * 用户已经在群里了
181  */
182  public static final short RES_TEAM_ALREADY_IN = 809;
183 
184  /**
185  * 邀请成功
186  */
187  public static final short RES_TEAM_INVITE_SUCCESS = 810;
188 
189  /**
190  * 部分邀请成功,同时会有失败列表
191  */
192  public static final short RES_TEAM_INVITE_PART_SUCCESS = 813;
193 
194  /**
195  * 部分请求成功,同时会有失败列表
196  */
197  public static final short RES_TEAM_INFO_PART_SUCCESS = 816;
198 
199  /**
200  * 内部错误
201  */
202  public static final short RES_EPACKET = 999;
203 
204  /**
205  * 内部错误
206  */
207  public static final short RES_EUNPACKET = 998;
208 
209  /**
210  * 被接收方加入黑名单
211  */
212  public static final short RES_IN_BLACK_LIST = 7101;
213 
214  public static final int V2_RES_IN_BLACK_LIST = 102426;
215 
216 
217  /**
218  * **************************** 聊天室 ************************************
219  */
220 
221  /**
222  * IM主连接状态异常
223  */
224  public static final short RES_CHATROOM_IM_LINK_EXCEPTION = 13001;
225 
226  /**
227  * 聊天室状态异常
228  */
229  public static final short RES_CHATROOM_STATUS_EXCEPTION = 13002;
230 
231  /**
232  * 账号在黑名单中,不允许进入聊天室
233  */
234  public static final short RES_CHATROOM_BLACKLIST = 13003;
235 
236  /**
237  * 在禁言列表中,不允许发言
238  */
239  public static final short RES_CHATROOM_MUTED = 13004;
240 
241  /**
242  * 聊天室处于整体禁言状态,只有管理员能发言
243  */
244  public static final short RES_CHATROOM_ROOM_MUTED = 13006;
245 
246 
247  /**
248  * ********************************* 独立信令系统 ***************************
249  */
250 
251  /**
252  * 执行的操作已经成功,只是对方不在线(推送可达,但是离线)
253  */
254  public static final short RES_PEER_NIM_OFFLINE = 10201;
255 
256  /**
257  * 执行的操作已经成功,只是对方推送不可达
258  */
259  public static final short RES_PEER_PUSH_OFFLINE = 10202;
260  /**
261  * 对应的频道不存在
262  */
263  public static final short RES_CHANNEL_NOT_EXISTS = 10404;
264 
265  /**
266  * 对应的频道已存在
267  */
268  public static final short RES_CHANNEL_HAS_EXISTS = 10405;
269 
270  /**
271  * 不在频道内
272  */
273  public static final short RES_CHANNEL_MEMBER_NOT_EXISTS = 10406;
274 
275  /**
276  * 已经在频道内
277  */
278  public static final short RES_CHANNEL_MEMBER_HAS_EXISTS = 10407;
279  /**
280  * 邀请不存在或已过期
281  */
282  public static final short RES_INVITE_NOT_EXISTS = 10408;
283 
284  /**
285  * 邀请已经拒绝
286  */
287  public static final short RES_INVITE_HAS_REJECT = 10409;
288 
289  /**
290  * 邀请已经接受了
291  */
292  public static final short RES_INVITE_HAS_ACCEPT = 10410;
293 
294 
295  /**
296  * 加入频道uid 冲突
297  */
298  public static final short RES_JOIN_CHANNEL_UID_CONFLICT = 10417;
299 
300  /**
301  * 频道人数超限
302  */
303  public static final short RES_CHANNEL_MEMBER_EXCEED = 10419;
304  /**
305  * 已经在频道内(自己的其他端)
306  */
307  public static final short RES_CHANNEL_MEMBER_HAS_EXISTS_OTHER_CLIENT = 10420;
308 
309  /**
310  * 第三方回调自定义错误码返回最小值,范围[20000,20099], 具体错误码对应关系由用户决定
311  */
312  public static final short RES_CALLBACK_CUSTOM_CODE_MIN = 20000;
313 
314  /**
315  * 第三方回调自定义错误码返回最大值, 20000- 20099
316  */
317  public static final short RES_CALLBACK_CUSTOM_CODE_MAX = 20099;
318 
319 
320  ////////////////////////////////////////////////////////
321  ////////////////////// 本地错误码 //////////////////////
322  ///////////////////////////////////////////////////////
323 
324  /**
325  * 未知
326  */
327  public static final short RES_UNKNOWN = -1;
328 
329  /**
330  * 操作出现异常
331  */
332  public static final short RES_EXCEPTION = 1000;
333 
334  /**
335  * SDK 回调上层操作出现异常
336  */
337  public static final short RES_CALLBACK_APP_EXCEPTION = 1001;
338 
339  /**
340  * SDK 异步转同步调用超时
341  */
342  public static final short RES_API_SYNC_TIMEOUT = 1002;
343 
344  /**
345  * SDK 异步转同步调用发生在带Looper的线程上(不允许在带Looper的线程上做同步调用)
346  */
347  public static final short RES_API_SYNC_RUN_ON_LOOPER_THREAD_EXCEPTION = 1003;
348 
349  /**
350  * SDK 异步转同步调用发生运行时异常(例如线程被中断异常)
351  */
352  public static final short RES_API_SYNC_RUNTIME_EXCEPTION = 1004;
353 
354  /**
355  * 当前未在线,无法操作
356  */
357  public static final short RES_OFFLINE = 1;
358 
359  /**
360  * 当前不支持的操作
361  */
362  public static final short RES_UNSUPPORT = 2;
363 
364  /**
365  * 注册第三方推送SDK获取token失败
366  */
367  public static final short RES_REGISTER_PUSH_SDK_FAILED = 3;
368 
369  /**
370  * 下载过期文件失败(对应于nos token scene)
371  */
372  public static final short DOWNLOAD_EXPIRE_FILE = 4;
373 
374  /**
375  * 使用了不合法的scene key
376  */
377  public static final short USE_INVALID_SCENE = 5;
378 
379  /**
380  * 找不到文件
381  */
382  public static final short FILE_NOT_FOUND = 6;
383 
384  /**
385  * 文件上传失败
386  */
387  public static final short FILE_UPLOAD_ERROR = 7;
388 
389  /**
390  * 注册第三方推送SDK超时
391  */
392  public static final short RES_REGISTER_PUSH_SDK_TIME_OUT = 8;
393 }
static final short RES_INVALID
已经失效
static final short RES_EUNKNOWN
服务器内部错误
static final short RES_EPACKET
内部错误
static final short RES_API_SYNC_RUN_ON_LOOPER_THREAD_EXCEPTION
SDK 异步转同步调用发生在带Looper的线程上(不允许在带Looper的线程上做同步调用)
static final short RES_CHATROOM_STATUS_EXCEPTION
聊天室状态异常
static final short RES_CHANNEL_MEMBER_EXCEED
频道人数超限
static final short USE_INVALID_SCENE
使用了不合法的scene key
static final short RES_PEER_PUSH_OFFLINE
执行的操作已经成功,只是对方推送不可达
static final short FILE_NOT_FOUND
找不到文件
static final short RES_IN_BLACK_LIST
被接收方加入黑名单
static final short RES_DEVICE_NOT_TRUST
设备不在信任设备表里
static final short RES_TOOBUZY
服务器太忙
static final short RES_CHATROOM_BLACKLIST
账号在黑名单中,不允许进入聊天室
static final short RES_IP_NOT_ALLOWED
内部帐户不允许在该地址登陆
static final short RES_CHANNEL_MEMBER_HAS_EXISTS
已经在频道内
static final short RES_INVITE_HAS_REJECT
邀请已经拒绝
static final short RES_CALLBACK_CUSTOM_CODE_MIN
第三方回调自定义错误码返回最小值,范围[20000,20099], 具体错误码对应关系由用户决定 ...
static final short RES_API_SYNC_RUNTIME_EXCEPTION
SDK 异步转同步调用发生运行时异常(例如线程被中断异常)
static final short RES_CLEAR_UNREAD_PART_SUCCESS
清空会话未读数部分成功
static final short RES_EUIDPASS
密码不正确
static final short RES_ADDR_BLOCKED
登录IP或MAC被禁
static final short RES_TEAM_ENACCESS
没有权限
static final short RES_OPERATION_DUPLICATE
重复操作
static final short RES_CHANNEL_MEMBER_HAS_EXISTS_OTHER_CLIENT
已经在频道内(自己的其他端)
static final short RES_JOIN_CHANNEL_UID_CONFLICT
加入频道uid 冲突
static final short RES_TEAM_EMEMBER_NOTEXIST
用户不在群里面
static final short RES_TEAM_APPLY_SUCCESS
申请成功
static final short RES_DB_EXCEPTION
操作数据库失败
static final short RES_UNSUPPORT
当前不支持的操作
static final short RES_INVITE_HAS_ACCEPT
邀请已经接受了
云信服务器主要响应码定义
static final short RES_REGISTER_PUSH_SDK_FAILED
注册第三方推送SDK获取token失败
static final short RES_ACCOUNT_BLOCK
帐号被禁用
static final short RES_UNKNOWN
未知
static final short RES_RP_INVALID
红包功能不可用
static final short RES_EEXIST
对象已经存在
static final short RES_TEAM_USER_STATUS_ERR
群成员状态不对
static final short RES_REGISTER_PUSH_SDK_TIME_OUT
注册第三方推送SDK超时
static final short RES_TEAM_ENOTEXIST
群不存在
static final short RES_NEED_CHANGE_LBS
需要切换LBS 不在ResponseDispatcherPush::makeResponse中传给主进程,在其他地方直接通过RemoteAgent::resp...
static final short RES_NO_CHANGE
数据自上次查询以来未发生变化
static final short RES_CHATROOM_IM_LINK_EXCEPTION
**************************** 聊天室 ************************************
static final short RES_EXCEPTION
操作出现异常
static final short RES_ENONEXIST
目标(对象或用户)不存在
static final short RES_CALLBACK_APP_EXCEPTION
SDK 回调上层操作出现异常
static final short RES_EFREQUENTLY
操作太过频繁
static final short RES_OVERDUE
超过期限
static final short RES_CALLBACK_CUSTOM_CODE_MAX
第三方回调自定义错误码返回最大值, 20000- 20099
static final short RES_EUNPACKET
内部错误
static final short RES_CHATROOM_ROOM_MUTED
聊天室处于整体禁言状态,只有管理员能发言
static final short DOWNLOAD_EXPIRE_FILE
下载过期文件失败(对应于nos token scene)
static final short RES_OPERATION_ALREADY_COMPLETED
操作已完成,当前请求无效
static final short RES_CHANNEL_NOT_EXISTS
对应的频道不存在
static final short FILE_UPLOAD_ERROR
文件上传失败
static final short RES_TEAM_ALREADY_IN
用户已经在群里了
static final short RES_NEED_RECONNECT
需要重连 不在ResponseDispatcherPush::makeResponse中传给主进程,在其他地方直接通过RemoteAgent::respons...
static final short RES_TEAM_ECOUNT_LIMIT
已达到人数限制
static final short RES_TEAM_LIMIT
群数量达到上限
static final short RES_OFFLINE
当前未在线,无法操作
static final short RES_SUCCESS
操作成功
static final short RES_FORBIDDEN
应用被封禁
static final short RES_CHANNEL_MEMBER_NOT_EXISTS
不在频道内
static final short RES_TEAM_INFO_PART_SUCCESS
部分请求成功,同时会有失败列表
static final short RES_INVITE_NOT_EXISTS
邀请不存在或已过期
static final short RES_CHATROOM_MUTED
在禁言列表中,不允许发言
static final short RES_TEAM_INVITE_PART_SUCCESS
部分邀请成功,同时会有失败列表
static final short RES_ETIMEOUT
操作超时
static final short RES_VERSION_EXPIRED
版本号太旧,需要升级
static final short RES_ECONNECTION
网络连接出现问题
static final short RES_CHANNEL_HAS_EXISTS
对应的频道已存在
static final short RES_PEER_NIM_OFFLINE
********************************* 独立信令系统 ***************************
static final short RES_TEAM_INVITE_SUCCESS
邀请成功
static final short RES_TEAM_ERR_TYPE
群类型不对
static final short RES_NEED_RECONNECT2
static final short RES_EPARAM
参数错误
static final short RES_API_SYNC_TIMEOUT
SDK 异步转同步调用超时