hyphenate_SDK3.0  3.8.4
hyphenate java IM SDK
静态 Public 属性 | 所有成员列表
com.hyphenate.EMError类 参考

静态 Public 属性

static final int EM_NO_ERROR = 0
 
static final int GENERAL_ERROR = 1
 
static final int NETWORK_ERROR = 2
 
static final int EXCEED_SERVICE_LIMIT = 4
 
static final int SERVICE_ARREARAGES = 5
 
static final int INVALID_APP_KEY = 100
 
static final int INVALID_USER_NAME = 101
 
static final int INVALID_PASSWORD = 102
 
static final int INVALID_URL = 103
 
static final int INVALID_TOKEN = 104
 
static final int USER_NAME_TOO_LONG = 105
 
static final int USER_ALREADY_LOGIN = 200
 
static final int USER_NOT_LOGIN = 201
 
static final int USER_AUTHENTICATION_FAILED = 202
 
static final int USER_ALREADY_EXIST = 203
 
static final int USER_NOT_FOUND = 204
 
static final int USER_ILLEGAL_ARGUMENT = 205
 
static final int USER_LOGIN_ANOTHER_DEVICE = 206
 
static final int USER_REMOVED = 207
 
static final int USER_REG_FAILED = 208
 
static final int USER_UPDATEINFO_FAILED = 209
 
static final int USER_PERMISSION_DENIED = 210
 
static final int USER_BINDDEVICETOKEN_FAILED = 211
 
static final int USER_UNBIND_DEVICETOKEN_FAILED = 212
 
static final int USER_BIND_ANOTHER_DEVICE = 213
 
static final int USER_LOGIN_TOO_MANY_DEVICES = 214
 
static final int USER_MUTED = 215
 
static final int USER_KICKED_BY_CHANGE_PASSWORD = 216
 
static final int USER_KICKED_BY_OTHER_DEVICE = 217
 
static final int SERVER_NOT_REACHABLE = 300
 
static final int SERVER_TIMEOUT = 301
 
static final int SERVER_BUSY = 302
 
static final int SERVER_UNKNOWN_ERROR = 303
 
static final int SERVER_GET_DNSLIST_FAILED = 304
 
static final int SERVER_SERVICE_RESTRICTED = 305
 
static final int FILE_NOT_FOUND = 400
 
static final int FILE_INVALID = 401
 
static final int FILE_UPLOAD_FAILED = 402
 
static final int FILE_DOWNLOAD_FAILED = 403
 
static final int FILE_DELETE_FAILED = 404
 
static final int FILE_TOO_LARGE = 405
 
static final int FILE_CONTENT_IMPROPER = 406
 
static final int MESSAGE_INVALID = 500
 
static final int MESSAGE_INCLUDE_ILLEGAL_CONTENT = 501
 
static final int MESSAGE_SEND_TRAFFIC_LIMIT = 502
 
static final int MESSAGE_ENCRYPTION_ERROR = 503
 
static final int MESSAGE_RECALL_TIME_LIMIT = 504
 
static final int SERVICE_NOT_ENABLED = 505
 
static final int MESSAGE_EXPIRED = 506
 
static final int MESSAGE_ILLEGAL_WHITELIST = 507
 
static final int MESSAGE_EXTERNAL_LOGIC_BLOCKED = 508
 
static final int GROUP_INVALID_ID = 600
 
static final int GROUP_ALREADY_JOINED = 601
 
static final int GROUP_NOT_JOINED = 602
 
static final int GROUP_PERMISSION_DENIED = 603
 
static final int GROUP_MEMBERS_FULL = 604
 
static final int GROUP_NOT_EXIST = 605
 
static final int CHATROOM_INVALID_ID = 700
 
static final int CHATROOM_ALREADY_JOINED = 701
 
static final int CHATROOM_NOT_JOINED = 702
 
static final int CHATROOM_PERMISSION_DENIED = 703
 
static final int CHATROOM_MEMBERS_FULL = 704
 
static final int CHATROOM_NOT_EXIST = 705
 
static final int PUSH_NOT_SUPPORT = 900
 
static final int PUSH_BIND_FAILED = 901
 
static final int PUSH_UNBIND_FAILED = 902
 

详细描述

SDK中的错误常量类 定义了SDK中常用的错误码

类成员变量说明

◆ CHATROOM_ALREADY_JOINED

final int com.hyphenate.EMError.CHATROOM_ALREADY_JOINED = 701
static

已经在此聊天室里

◆ CHATROOM_INVALID_ID

final int com.hyphenate.EMError.CHATROOM_INVALID_ID = 700
static

聊天室id不正确

◆ CHATROOM_MEMBERS_FULL

final int com.hyphenate.EMError.CHATROOM_MEMBERS_FULL = 704
static

聊天室成员已满

◆ CHATROOM_NOT_EXIST

final int com.hyphenate.EMError.CHATROOM_NOT_EXIST = 705
static

聊天室不存在

◆ CHATROOM_NOT_JOINED

final int com.hyphenate.EMError.CHATROOM_NOT_JOINED = 702
static

尚未加入此聊天室

◆ CHATROOM_PERMISSION_DENIED

final int com.hyphenate.EMError.CHATROOM_PERMISSION_DENIED = 703
static

聊天室权限不够

◆ EM_NO_ERROR

final int com.hyphenate.EMError.EM_NO_ERROR = 0
static

无错误

◆ EXCEED_SERVICE_LIMIT

final int com.hyphenate.EMError.EXCEED_SERVICE_LIMIT = 4
static

服务受限

◆ FILE_CONTENT_IMPROPER

final int com.hyphenate.EMError.FILE_CONTENT_IMPROPER = 406
static

文件内容不合规

◆ FILE_DELETE_FAILED

final int com.hyphenate.EMError.FILE_DELETE_FAILED = 404
static

文件删除失败

◆ FILE_DOWNLOAD_FAILED

final int com.hyphenate.EMError.FILE_DOWNLOAD_FAILED = 403
static

文件下载失败

◆ FILE_INVALID

final int com.hyphenate.EMError.FILE_INVALID = 401
static

文件不合法

◆ FILE_NOT_FOUND

final int com.hyphenate.EMError.FILE_NOT_FOUND = 400
static

文件不存在

◆ FILE_TOO_LARGE

final int com.hyphenate.EMError.FILE_TOO_LARGE = 405
static

文件太大

◆ FILE_UPLOAD_FAILED

final int com.hyphenate.EMError.FILE_UPLOAD_FAILED = 402
static

文件上传失败

◆ GENERAL_ERROR

final int com.hyphenate.EMError.GENERAL_ERROR = 1
static

一般错误,未细分的错误一般通过此错误码抛出来

◆ GROUP_ALREADY_JOINED

final int com.hyphenate.EMError.GROUP_ALREADY_JOINED = 601
static

已经加入的群组

◆ GROUP_INVALID_ID

final int com.hyphenate.EMError.GROUP_INVALID_ID = 600
static

群id不正确

◆ GROUP_MEMBERS_FULL

final int com.hyphenate.EMError.GROUP_MEMBERS_FULL = 604
static

群成员已满

◆ GROUP_NOT_EXIST

final int com.hyphenate.EMError.GROUP_NOT_EXIST = 605
static

群组不存在

◆ GROUP_NOT_JOINED

final int com.hyphenate.EMError.GROUP_NOT_JOINED = 602
static

尚未加入此群组

◆ GROUP_PERMISSION_DENIED

final int com.hyphenate.EMError.GROUP_PERMISSION_DENIED = 603
static

群组权限不够

◆ INVALID_APP_KEY

final int com.hyphenate.EMError.INVALID_APP_KEY = 100
static

appkey不正确

◆ INVALID_PASSWORD

final int com.hyphenate.EMError.INVALID_PASSWORD = 102
static

密码不正确

◆ INVALID_TOKEN

final int com.hyphenate.EMError.INVALID_TOKEN = 104
static

token无效

◆ INVALID_URL

final int com.hyphenate.EMError.INVALID_URL = 103
static

url不正确

◆ INVALID_USER_NAME

final int com.hyphenate.EMError.INVALID_USER_NAME = 101
static

用户id不正确

◆ MESSAGE_ENCRYPTION_ERROR

final int com.hyphenate.EMError.MESSAGE_ENCRYPTION_ERROR = 503
static

消息加解密错误

◆ MESSAGE_EXPIRED

final int com.hyphenate.EMError.MESSAGE_EXPIRED = 506
static

消息已经过期

◆ MESSAGE_EXTERNAL_LOGIC_BLOCKED

final int com.hyphenate.EMError.MESSAGE_EXTERNAL_LOGIC_BLOCKED = 508
static

消息执行发送前回调,被用户自己的逻辑拦截

◆ MESSAGE_ILLEGAL_WHITELIST

final int com.hyphenate.EMError.MESSAGE_ILLEGAL_WHITELIST = 507
static

群组或者聊天室开启了禁言,用户不在白名单中

◆ MESSAGE_INCLUDE_ILLEGAL_CONTENT

final int com.hyphenate.EMError.MESSAGE_INCLUDE_ILLEGAL_CONTENT = 501
static

消息内容包含非法或敏感词

◆ MESSAGE_INVALID

final int com.hyphenate.EMError.MESSAGE_INVALID = 500
static

消息不合法

◆ MESSAGE_RECALL_TIME_LIMIT

final int com.hyphenate.EMError.MESSAGE_RECALL_TIME_LIMIT = 504
static

消息撤回超时

◆ MESSAGE_SEND_TRAFFIC_LIMIT

final int com.hyphenate.EMError.MESSAGE_SEND_TRAFFIC_LIMIT = 502
static

消息发送过快,触发限流

◆ NETWORK_ERROR

final int com.hyphenate.EMError.NETWORK_ERROR = 2
static

网络异常

◆ PUSH_BIND_FAILED

final int com.hyphenate.EMError.PUSH_BIND_FAILED = 901
static

推送令牌绑定失败

◆ PUSH_NOT_SUPPORT

final int com.hyphenate.EMError.PUSH_NOT_SUPPORT = 900
static

当前设备不支持推送

◆ PUSH_UNBIND_FAILED

final int com.hyphenate.EMError.PUSH_UNBIND_FAILED = 902
static

推送令牌解除绑定失败

◆ SERVER_BUSY

final int com.hyphenate.EMError.SERVER_BUSY = 302
static

服务器繁忙

◆ SERVER_GET_DNSLIST_FAILED

final int com.hyphenate.EMError.SERVER_GET_DNSLIST_FAILED = 304
static

获取dns失败

◆ SERVER_NOT_REACHABLE

final int com.hyphenate.EMError.SERVER_NOT_REACHABLE = 300
static

无法访问到服务器

◆ SERVER_SERVICE_RESTRICTED

final int com.hyphenate.EMError.SERVER_SERVICE_RESTRICTED = 305
static

chat功能限制

◆ SERVER_TIMEOUT

final int com.hyphenate.EMError.SERVER_TIMEOUT = 301
static

等待服务器响应超时

◆ SERVER_UNKNOWN_ERROR

final int com.hyphenate.EMError.SERVER_UNKNOWN_ERROR = 303
static

未知的server异常

◆ SERVICE_ARREARAGES

final int com.hyphenate.EMError.SERVICE_ARREARAGES = 5
static

余额不足

◆ SERVICE_NOT_ENABLED

final int com.hyphenate.EMError.SERVICE_NOT_ENABLED = 505
static

服务未开通

◆ USER_ALREADY_EXIST

final int com.hyphenate.EMError.USER_ALREADY_EXIST = 203
static

用户已经存在

◆ USER_ALREADY_LOGIN

final int com.hyphenate.EMError.USER_ALREADY_LOGIN = 200
static

用户已登录

◆ USER_AUTHENTICATION_FAILED

final int com.hyphenate.EMError.USER_AUTHENTICATION_FAILED = 202
static

用户id或密码错误

◆ USER_BIND_ANOTHER_DEVICE

final int com.hyphenate.EMError.USER_BIND_ANOTHER_DEVICE = 213
static

当前帐户已经绑定另外的设备,不允许当前设备自动登录

◆ USER_BINDDEVICETOKEN_FAILED

final int com.hyphenate.EMError.USER_BINDDEVICETOKEN_FAILED = 211
static

绑定设备token失败

◆ USER_ILLEGAL_ARGUMENT

final int com.hyphenate.EMError.USER_ILLEGAL_ARGUMENT = 205
static

参数不合法

◆ USER_KICKED_BY_CHANGE_PASSWORD

final int com.hyphenate.EMError.USER_KICKED_BY_CHANGE_PASSWORD = 216
static

用户修改密码

◆ USER_KICKED_BY_OTHER_DEVICE

final int com.hyphenate.EMError.USER_KICKED_BY_OTHER_DEVICE = 217
static

用户被其他设备踢掉

◆ USER_LOGIN_ANOTHER_DEVICE

final int com.hyphenate.EMError.USER_LOGIN_ANOTHER_DEVICE = 206
static

账户在另外一台设备登录

◆ USER_LOGIN_TOO_MANY_DEVICES

final int com.hyphenate.EMError.USER_LOGIN_TOO_MANY_DEVICES = 214
static

当前用户登陆的设备数过多

◆ USER_MUTED

final int com.hyphenate.EMError.USER_MUTED = 215
static

用户在群组或聊天室被禁言

◆ USER_NAME_TOO_LONG

final int com.hyphenate.EMError.USER_NAME_TOO_LONG = 105
static

用户名过长

◆ USER_NOT_FOUND

final int com.hyphenate.EMError.USER_NOT_FOUND = 204
static

不存在此用户

◆ USER_NOT_LOGIN

final int com.hyphenate.EMError.USER_NOT_LOGIN = 201
static

用户未登录

◆ USER_PERMISSION_DENIED

final int com.hyphenate.EMError.USER_PERMISSION_DENIED = 210
static

用户没有该操作权限

◆ USER_REG_FAILED

final int com.hyphenate.EMError.USER_REG_FAILED = 208
static

注册失败

◆ USER_REMOVED

final int com.hyphenate.EMError.USER_REMOVED = 207
static

账户被删除

◆ USER_UNBIND_DEVICETOKEN_FAILED

final int com.hyphenate.EMError.USER_UNBIND_DEVICETOKEN_FAILED = 212
static

解绑设备token失败

◆ USER_UPDATEINFO_FAILED

final int com.hyphenate.EMError.USER_UPDATEINFO_FAILED = 209
static

更新用户信息失败


该类的文档由以下文件生成: