Package io.rong.imlib

Enum RongIMClient.ConnectionErrorCode

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      IPC_DISCONNECT

      IPC 进程意外终止。

      如果是系统进行了资源回收后调用接口会触发此问题,SDK 会做好自动重连。

      当 libRongIMLib.so 或 libsqlite.so 找不到或出现崩溃时也会触发此错误

      RC_CONN_ID_REJECT

      AppKey 错误

      请检查您使用的 AppKey 是否正确。

      RC_CONN_TOKEN_INCORRECT

      Token 无效

      token 错误,请您检查客户端初始化使用的 AppKey 和您服务器获取 token 使用的 AppKey 是否一致.

      RC_CONN_NOT_AUTHRORIZED

      App 校验未通过

      App 校验未通过,是因为您开通了 App 校验功能,但是校验未通过.

      RC_CONN_PACKAGE_NAME_INVALID

      ApplicationId 与后台注册信息不一致。

      RC_CONN_APP_BLOCKED_OR_DELETED

      AppKey 被封禁或已删除

      请检查您使用的 AppKey 是否被封禁或已删除。

      RC_CONN_USER_BLOCKED

      用户被封禁

      请检查您使用的 Token 是否正确,以及对应的 UserId 是否被封禁。 5.2.3新增: 5.2.3之前的版本,出现此错误也可能是用户被销户了

      RC_DISCONN_KICK

      用户被踢下线

      当前用户在其他设备上登录,此设备被踢下线

      RC_CONN_OTHER_DEVICE_LOGIN

      用户在其它设备上登录

      重连过程中当前用户在其它设备上登录

      RC_CLIENT_NOT_INIT

      SDK 没有初始化

      在使用 SDK 任何功能之前,必须先 Init 。

      RC_INVALID_PARAMETER

      开发者接口调用时传入的参数错误

      请检查接口调用时传入的参数类型和值。

      RC_CONNECTION_EXIST

      连接已存在

      RC_ENVIRONMENT_ERROR

      连接环境不正确(融云公有云 SDK 无法连接到私有云环境。

      请确认需要连接的环境,使用正确 SDK 版本。

      RC_CONNECT_TIMEOUT

      SDK 内部连接超时,调用 connect 接口设置有效的 timeLimit 值时会出现该错误

      SDK 不会继续重连,需要 APP 手动调用 connect 接口进行连接。

      RC_CONN_CLUSTER_ERROR

      环境校验失败

      请检查 AppKey 和连接环境(开发环境/生产生产)是否匹配

      RC_CONN_APP_AUTH_FAILED

      APP 服务校验失败 连接接口 ConnectOption.connectExt 参数在 APP 服务验证不通过.

      RC_CONN_DISPOSABLE_TOKEN_USED

      该 token 已经被使用过,无法进行连接 一次性 token 只能连接一次,之后再使用会上报此错误

      RC_CONN_TOKEN_EXPIRE

      Token过期

      是因为您在开发者后台设置了token 过期时间,您需要请求您的服务器重新获取 token 并再次用新的 token 建立连接.

      RC_CONN_USER_ABANDON

      用户已销户

      RC_CONN_APP_LICENSE_EXPIRED

      APP License 过期 请检查为您部署的 IM 服务 License 是否过期

      UNKNOWN

      未知错误

    • Constructor Detail

    • Method Detail

      • 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