ConnectionErrorCode

*Error Codes for Connection Establishment**

Entries

Link copied to clipboard

IPC process terminated unexpectedly.

Link copied to clipboard

Invalid App Key

Link copied to clipboard

Token is invalid

Link copied to clipboard

App verification failed

Link copied to clipboard

does not match the registered information in the backend.

Link copied to clipboard

App Key is banned or deleted

Link copied to clipboard

User is banned

Link copied to clipboard

User Kicked Offline

Link copied to clipboard

User logged in on another device

Link copied to clipboard

SDK is not initialized

Link copied to clipboard

Incorrect parameters passed during developer API invocation

Link copied to clipboard

Connection already exists

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Environment validation failed

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Token expired

Link copied to clipboard

User account deactivated

Link copied to clipboard

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

Link copied to clipboard

Unknown error

Functions

Link copied to clipboard
public int getValue()
Retrieves the error code value.
Link copied to clipboard
public static RongIMClient.ConnectionErrorCode valueOf(int code)
Sets the error code value.
public 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.)

Link copied to clipboard

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.