Chat SDK for Android v1.3.1
agora java chat SDK
|
Static Public Attributes | |
static final int | EM_NO_ERROR = 0 |
static final int | GENERAL_ERROR = 1 |
static final int | NETWORK_ERROR = 2 |
static final int | DATABASE_ERROR = 3 |
static final int | EXCEED_SERVICE_LIMIT = 4 |
static final int | SERVICE_ARREARAGES = 5 |
static final int | PUSH_REPORT_ACTION_FAILED = 6 |
static final int | PARTIAL_SUCCESS = 7 |
static final int | APP_ACTIVE_NUMBER_REACH_LIMITATION = 8 |
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 | CHANNEL_SYNC_NOT_OPEN = 106 |
static final int | INVALID_CONVERSATION = 107 |
static final int | TOKEN_EXPIRED = 108 |
static final int | TOKEN_WILL_EXPIRE = 109 |
static final int | INVALID_PARAM = 110 |
static final int | OPERATION_UNSUPPORTED = 111 |
static final int | QUERY_PARAM_REACHES_LIMIT = 112 |
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 | USER_ALREADY_LOGIN_ANOTHER = 218 |
static final int | USER_MUTED_BY_ADMIN = 219 |
static final int | USER_DEVICE_CHANGED = 220 |
static final int | USER_NOT_ON_ROSTER = 221 |
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 | SERVER_DECRYPTION_FAILED = 306 |
static final int | SERVER_RESPONSE_ILLEGAL = 309 |
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 | FILE_IS_EXPIRED = 407 |
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 | MESSAGE_CURRENT_LIMITING = 509 |
static final int | MESSAGE_SIZE_LIMIT = 510 |
static final int | MESSAGE_EDIT_FAILED = 511 |
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_SHARED_FILE_INVALIDID = 605 |
static final int | GROUP_NOT_EXIST = 606 |
static final int | GROUP_DISABLED = 607 |
static final int | GROUP_NAME_VIOLATION = 608 |
static final int | GROUP_MEMBER_ATTRIBUTES_REACH_LIMIT = 609 |
static final int | GROUP_MEMBER_ATTRIBUTES_UPDATE_FAILED = 610 |
static final int | GROUP_MEMBER_ATTRIBUTES_KEY_REACH_LIMIT = 611 |
static final int | GROUP_MEMBER_ATTRIBUTES_VALUE_REACH_LIMIT = 612 |
static final int | GROUP_USER_IN_BLOCKLIST = 613 |
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 | CHATROOM_OWNER_NOT_ALLOW_LEAVE = 706 |
static final int | CHATROOM_USER_IN_BLOCKLIST = 707 |
static final int | USERINFO_USERCOUNT_EXCEED = 900 |
static final int | USERINFO_DATALENGTH_EXCEED = 901 |
static final int | TRANSLATE_INVALID_PARAMS = 903 |
static final int | TRANSLATE_FAIL = 904 |
static final int | TRANSLATE_NOT_INIT = 905 |
static final int | CONTACT_ADD_FAILED = 1000 |
static final int | CONTACT_REACH_LIMIT = 1001 |
static final int | CONTACT_REACH_LIMIT_PEER = 1002 |
static final int | PRESENCE_PARAM_LENGTH_EXCEED = 1100 |
static final int | PRESENCE_CANNOT_SUBSCRIBE_YOURSELF = 1101 |
static final int | TRANSLATE_PARAM_INVALID = 1110 |
static final int | TRANSLATE_SERVICE_NOT_ENABLE = 1111 |
static final int | TRANSLATE_USAGE_LIMIT = 1112 |
static final int | TRANSLATE_MESSAGE_FAIL = 1113 |
static final int | MODERATION_FAILED = 1200 |
static final int | THIRD_SERVER_FAILED = 1299 |
static final int | REACTION_REACH_LIMIT = 1300 |
static final int | REACTION_HAS_BEEN_OPERATED = 1301 |
static final int | REACTION_OPERATION_IS_ILLEGAL = 1302 |
static final int | THREAD_NOT_EXIST = 1400 |
static final int | THREAD_ALREADY_EXIST = 1401 |
static final int | THREAD_CREATE_MESSAGE_ILLEGAL = 1402 |
static final int | PUSH_NOT_SUPPORT = 1500 |
static final int | PUSH_BIND_FAILED = 1501 |
static final int | PUSH_UNBIND_FAILED = 1502 |
The error constant class in the SDK, which defines common error codes in the SDK.
|
static |
The number of daily active users (DAU) or monthly active users (MAU) for the app has reached the upper limit .
|
static |
The function of getting conversations from the server has not been activated.
|
static |
The user is already in the chat room.
|
static |
The chat room ID is invalid.
|
static |
The chat room has reached the maximum member capacity.
|
static |
The chat room does not exist.
|
static |
The user is not in the chat room.
|
static |
The owner of chat room is not allow to leave (call leaveChatroom API when canChatroomOwnerLeave option is false).
|
static |
The user does not have the operation permission.
|
static |
The user is in the chat room blacklist.
|
static |
Failed to add a contact.
|
static |
The inviter has reached the maximum number of contacts that can be added.
|
static |
The invitee has reached the maximum number of contacts that can be added.
|
static |
A database operation fails.
|
static |
No error.
|
static |
The service limit is exceeded.
|
static |
The file contains improper content.
|
static |
The file deletion fails.
|
static |
The file download fails.
|
static |
The file is invalid.
|
static |
The file is expired.
|
static |
The file is not found.
|
static |
The file is too large.
|
static |
The file upload fails.
|
static |
The general error occurs.
Undefined errors are generally thrown with this error code.
|
static |
The user is already in the group.
|
static |
The group is disabled.
|
static |
The group ID is incorrect.
|
static |
The key of a custom attribute(s) of the group member has exceeded the maximum allowed length of 16 bytes.
|
static |
The total length of custom attributes of the group member has exceeded the upper limit (4 KB).
|
static |
Fails to set the custom attribute(s) of the group member.
|
static |
The value of a custom attribute(s) of the group member has exceeded the maximum allowed length of 512 bytes.
|
static |
The group has reached the maximum member capacity.
|
static |
The group name is inappropriate.
|
static |
The group does not exist.
|
static |
The user is not in the group.
|
static |
The user does not have group operation permissions.
|
static |
The group shared file ID is invalid.
|
static |
The user is in the group blacklist.
|
static |
The App Key is invalid.
|
static |
Invalid conversation.
|
static |
The parameter is invalid.
|
static |
The password is invalid.
|
static |
The token is invalid.
|
static |
The URL is invalid.
|
static |
The user ID is invalid.
|
static |
You have exceeded the maximum frequency of sending group messages.
|
static |
The message modification failed.
|
static |
The message encryption/decryption error.
|
static |
The message has expired.
|
static |
A message is blocked by pre-delivery callback.
|
static |
All members in a group or chat room are muted and the current user is not on the allow list.
|
static |
The message contains invalid content or sensitive words.
|
static |
The message is invalid.
|
static |
The message recall times out.
|
static |
The traffic limit for message sending is exceeded.
|
static |
You have exceeded the maximum allowed size of a message body.
|
static |
The third-party content moderation service rates the message as "Reject".
|
static |
A network error occurs.
|
static |
The operation is not supported.
|
static |
request success but had some error value
|
static |
Presence can't subscribe yourself.
|
static |
The parameter length of the presence method exceeds the upper limit.
|
static |
Fails to bind the push token.
|
static |
The current device does not support push.
|
static |
Fails to report push information to the server.
|
static |
Fails to unbind the push token.
|
static |
Query param reaches limit
|
static |
The Reaction already exists.
|
static |
The user does not have the permission for the Reaction operation.
For example, the user who does not add the reaction attempts to delete it, or the user that is neither the sender nor recipient of the one-to-one message attempts to add the Reaction.
|
static |
The number of Reactions has reached the upper limit.
|
static |
The server is busy.
|
static |
Server transfer decryption failed.
|
static |
Fails to get the DNS server list.
|
static |
Unable to access the server.
|
static |
The server returns data in an incorrect format.
|
static |
The chat function is restricted.
|
static |
The server response times out.
|
static |
An unknown server error.
|
static |
The balance is insufficient.
|
static |
The service is not enabled.
|
static |
Another third-party moderation service rather than the third-party content moderation service rates the message as "Reject".
|
static |
The message thread you are attempting to create already exists in a chat group.
|
static |
The parent message of the message thread is invalid.
|
static |
The message thread does not exist.
|
static |
The token has expired.
|
static |
The token is about to expire.
|
static |
Translation failure.
|
static |
Invalid translation parameters.
|
static |
Failed to obtain the translation service.
|
static |
The translation is not initialized.
|
static |
Translation parameter error.
|
static |
The translation service has not been enabled.
|
static |
You have reached the maximum number of characters for translation.
|
static |
The user already exists.
|
static |
The user is already logged in.
|
static |
The other user has already logged in.
|
static |
The user ID or password is incorrect.
|
static |
The user is bound to another device and automatic login is not allowed.
|
static |
Fails to bind the device token.
|
static |
The current login device is not the same as last time and you need to log in again.
By default, the user is allowed to log in to the current device, but will be kicked off from another device. This method works only when the switch of not kicking off users from other devices is turned on.
|
static |
Invalid parameter.
|
static |
The user has changed the password.
|
static |
The user is kicked off from another device.
|
static |
The user is logged in from another device.
|
static |
The user has logged in on too many devices.
|
static |
The user is muted in the chat group or chat room.
|
static |
The user is muted by the admin.
|
static |
The user ID is too long.
|
static |
The user is not found.
|
static |
The user is not logged in.
|
static |
The user is not on your contact list and you cannot send messages to the user, or some other friend related operations to the user.
By default, you can send messages to strangers.
This error will be reported only when you have turned on the function of allowing you to send messages only to your contacts.
|
static |
The user has no operation permission.
|
static |
The user registration fails.
|
static |
The user is removed from the server.
|
static |
Fails to unbind the device token.
|
static |
Fails to update user information.
|
static |
The length of the updated user information exceeds the upper limit.
|
static |
The number of users for user information retrieval exceeds the upper limit.