Enum RongIMClient.ConnectionErrorCode
-
- All Implemented Interfaces:
public enum RongIMClient.ConnectionErrorCode建立连接返回的错误码
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IPC_DISCONNECTIPC 进程意外终止。
如果是系统进行了资源回收后调用接口会触发此问题,SDK 会做好自动重连。
当 libRongIMLib.so 或 libsqlite.so 找不到或出现崩溃时也会触发此错误
RC_CONN_ID_REJECTAppKey 错误
请检查您使用的 AppKey 是否正确。
RC_CONN_TOKEN_INCORRECTToken 无效
token 错误,请您检查客户端初始化使用的 AppKey 和您服务器获取 token 使用的 AppKey 是否一致.
RC_CONN_NOT_AUTHRORIZEDApp 校验未通过
App 校验未通过,是因为您开通了 App 校验功能,但是校验未通过.
RC_CONN_PACKAGE_NAME_INVALIDApplicationId 与后台注册信息不一致。
RC_CONN_APP_BLOCKED_OR_DELETEDAppKey 被封禁或已删除
请检查您使用的 AppKey 是否被封禁或已删除。
RC_CONN_USER_BLOCKED用户被封禁
请检查您使用的 Token 是否正确,以及对应的 UserId 是否被封禁。 5.2.3新增: 5.2.3之前的版本,出现此错误也可能是用户被销户了
RC_DISCONN_KICK用户被踢下线
当前用户在其他设备上登录,此设备被踢下线
RC_CONN_OTHER_DEVICE_LOGIN用户在其它设备上登录
重连过程中当前用户在其它设备上登录
RC_CLIENT_NOT_INITSDK 没有初始化
在使用 SDK 任何功能之前,必须先 Init 。
RC_INVALID_PARAMETER开发者接口调用时传入的参数错误
请检查接口调用时传入的参数类型和值。
RC_CONNECTION_EXIST连接已存在
RC_ENVIRONMENT_ERROR连接环境不正确(融云公有云 SDK 无法连接到私有云环境。
请确认需要连接的环境,使用正确 SDK 版本。
RC_CONNECT_TIMEOUTSDK 内部连接超时,调用 connect 接口设置有效的 timeLimit 值时会出现该错误
SDK 不会继续重连,需要 APP 手动调用 connect 接口进行连接。
RC_CONN_CLUSTER_ERROR环境校验失败
请检查 AppKey 和连接环境(开发环境/生产生产)是否匹配
RC_CONN_APP_AUTH_FAILEDAPP 服务校验失败 连接接口 ConnectOption.connectExt 参数在 APP 服务验证不通过.
RC_CONN_DISPOSABLE_TOKEN_USED该 token 已经被使用过,无法进行连接 一次性 token 只能连接一次,之后再使用会上报此错误
RC_CONN_TOKEN_EXPIREToken过期
是因为您在开发者后台设置了token 过期时间,您需要请求您的服务器重新获取 token 并再次用新的 token 建立连接.
RC_CONN_USER_ABANDON用户已销户
RC_CONN_APP_LICENSE_EXPIREDAPP License 过期 请检查为您部署的 IM 服务 License 是否过期
UNKNOWN未知错误
-
Method Summary
Modifier and Type Method Description static RongIMClient.ConnectionErrorCodevalueOf(int code)设置错误代码值。 intgetValue()获取错误代码值。 static Array<RongIMClient.ConnectionErrorCode>values()Returns an array containing the constants of this enum type, in the order they're declared. static RongIMClient.ConnectionErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
valueOf
static RongIMClient.ConnectionErrorCode valueOf(int code)
设置错误代码值。
- Parameters:
code- 错误代码。- Returns:
错误代码枚举。
-
getValue
int getValue()
获取错误代码值。
- Returns:
错误代码值。
-
values
static Array<RongIMClient.ConnectionErrorCode> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static RongIMClient.ConnectionErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-