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 process terminated unexpectedly.

      This issue may be triggered when the system reclaims resources and then calls the interface. The SDK will handle automatic reconnection.

      This error may also be triggered when libRongIMLib.so or libsqlite.so is missing or crashes.

      RC_CONN_ID_REJECT

      Invalid App Key

      Please verify that the App Key you are using is correct.

      RC_CONN_TOKEN_INCORRECT

      Token is invalid

      The token is incorrect. Please verify that the App Key used for client initialization matches the App Key used to obtain the token from your server.

      RC_CONN_NOT_AUTHRORIZED

      App verification failed

      App verification failed because you have enabled the App verification feature, but the verification did not pass.

      RC_CONN_PACKAGE_NAME_INVALID

      does not match the registered information in the backend.

      RC_CONN_APP_BLOCKED_OR_DELETED

      App Key is banned or deleted

      Check whether the App Key you are using is banned or deleted.

      RC_CONN_USER_BLOCKED

      User is banned

      Please verify that the Token you are using is correct and whether the corresponding UserId is banned. Added in version 5.2.3: For versions prior to 5.2.3, this error may also occur if the user account has been deactivated.

      RC_DISCONN_KICK

      User Kicked Offline

      The current user logged in on another device, and this device was kicked offline

      RC_CONN_OTHER_DEVICE_LOGIN

      User logged in on another device

      During reconnection, the current user logged in on another device

      RC_CLIENT_NOT_INIT

      SDK is not initialized

      You must initialize the SDK using the Init method before using any of its features.

      RC_INVALID_PARAMETER

      Incorrect parameters passed during developer API invocation

      Please verify the parameter types and values passed during the API invocation.

      RC_CONNECTION_EXIST

      Connection already exists

      RC_ENVIRONMENT_ERROR

      Incorrect connection environment (RCpublic cloud SDK cannot connect to a private cloud environment).

      Please confirm the environment you need to connect to and use the correct SDK version.

      RC_CONNECT_TIMEOUT

      SDK internal connection timeout. This error occurs when calling the connect interface with an invalid timeLimit value.

      The SDK will not attempt to reconnect automatically. The app must manually call the connect interface to establish a connection.

      RC_CONN_CLUSTER_ERROR

      Environment validation failed

      Please verify that the App Key and connection environment (development environment/production environment) match.

      RC_CONN_APP_AUTH_FAILED

      The automatic connection has timed out. The SDK will not continue to attempt the connection. The user needs to handle the timeout situation and then call the connectWithToken interface to initiate the connection on their own.

      RC_CONN_DISPOSABLE_TOKEN_USED

      The token has already been used and cannot be used for connection. A one-time token can only be used once, and subsequent attempts will result in this error.

      RC_CONN_TOKEN_EXPIRE

      Token expired

      This occurs because you have set a token expiration time in the developer console. You need to request a new token from your server and establish a connection using the new token.

      RC_CONN_USER_ABANDON

      User account deactivated

      RC_CONN_APP_LICENSE_EXPIRED

      APP License expired. Please check if the IM service License deployed for you has expired.

      UNKNOWN

      Unknown error

    • Constructor Detail

    • Method Detail

      • getValue

         int getValue()

        Retrieves the error code value.

        Returns:

        The error code value.

      • 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