AgoraChatSDK 1.2.0
AgoraChatErrorCode.h
1
9#ifndef AgoraChatErrorCode_h
10#define AgoraChatErrorCode_h
11
12typedef NS_ENUM(NSInteger, AgoraChatErrorCode) {
13
14 AgoraChatErrorNoError = 0,
16 AgoraChatErrorGeneral = 1,
17 AgoraChatErrorNetworkUnavailable,
18 AgoraChatErrorDatabaseOperationFailed,
19 AgoraChatErrorExceedServiceLimit,
20 AgoraChatErrorServiceArrearages,
21 AgoraChatErrorPushReportActionFailed,
22 AgoraChatErrorPartialSuccess,
23 AgoraChatErrorAppActiveNumbersReachLimitation,
25 AgoraChatErrorInvalidAppkey = 100,
26 AgoraChatErrorInvalidUsername,
27 AgoraChatErrorInvalidPassword,
28 AgoraChatErrorInvalidURL,
29 AgoraChatErrorInvalidToken,
30 AgoraChatErrorUsernameTooLong,
31 AgoraChatErrorChannelSyncNotOpen,
32 AgoraChatErrorInvalidConversation,
33 AgoraChatErrorTokenExpire,
34 AgoraChatErrorTokeWillExpire,
36 AgoraChatErrorInvalidParam = 110,
37 AgoraChatErrorOperationUnsupported,
38 AgoraChatErrorQueryParamReachesLimit,
40 AgoraChatErrorUserAlreadyLoginSame = 200,
41 AgoraChatErrorUserNotLogin,
42 AgoraChatErrorUserAuthenticationFailed,
43 AgoraChatErrorUserAlreadyExist,
44 AgoraChatErrorUserNotFound,
45 AgoraChatErrorUserIllegalArgument,
46 AgoraChatErrorUserLoginOnAnotherDevice,
47 AgoraChatErrorUserRemoved,
48 AgoraChatErrorUserRegisterFailed,
49 AgoraChatErrorUpdateApnsConfigsFailed,
50 AgoraChatErrorUserPermissionDenied,
51 AgoraChatErrorUserBindDeviceTokenFailed,
52 AgoraChatErrorUserUnbindDeviceTokenFailed,
53 AgoraChatErrorUserBindAnotherDevice,
54 AgoraChatErrorUserLoginTooManyDevices,
55 AgoraChatErrorUserMuted,
56 AgoraChatErrorUserKickedByChangePassword,
57 AgoraChatErrorUserKickedByOtherDevice,
58 AgoraChatErrorUserAlreadyLoginAnother,
59 AgoraChatErrorUserMutedByAdmin,
60 AgoraChatErrorUserDeviceChanged,
61 AgoraChatErrorUserNotOnRoster,
63 AgoraChatErrorServerNotReachable = 300,
64 AgoraChatErrorServerTimeout,
65 AgoraChatErrorServerBusy,
66 AgoraChatErrorServerUnknownError,
67 AgoraChatErrorServerGetDNSConfigFailed,
68 AgoraChatErrorServerServingForbidden,
69 AgoraChatErrorServerDecryptionFailed,
70 AgoraChatErrorServerGetRTCConfigFailed,
71 AgoraChatErrorServerNoMatchURL,
73 AgoraChatErrorFileNotFound = 400,
74 AgoraChatErrorFileInvalid,
75 AgoraChatErrorFileUploadFailed,
76 AgoraChatErrorFileDownloadFailed,
77 AgoraChatErrorFileDeleteFailed,
78 AgoraChatErrorFileTooLarge,
79 AgoraChatErrorFileContentImproper,
82 AgoraChatErrorMessageInvalid = 500,
83 AgoraChatErrorMessageIncludeIllegalContent,
84 AgoraChatErrorMessageTrafficLimit,
85 AgoraChatErrorMessageEncryption,
86 AgoraChatErrorMessageRecallTimeLimit,
87 AgoraChatErrorServiceNotEnable,
88 AgoraChatErrorMessageExpired,
89 AgoraChatErrorMessageIllegalWhiteList,
90 AgoraChatErrorMessageExternalLogicBlocked,
91 AgoraChatErrorMessageCurrentLimiting,
92 AgoraChatErrorMessageSizeLimit,
94 AgoraChatErrorGroupInvalidId = 600,
95 AgoraChatErrorGroupAlreadyJoined,
96 AgoraChatErrorGroupNotJoined,
97 AgoraChatErrorGroupPermissionDenied,
98 AgoraChatErrorGroupMembersFull,
99 AgoraChatErrorGroupNotExist,
100 AgoraChatErrorGroupSharedFileInvalidId,
101 AgoraChatErrorGroupDisabled,
102 AgoraChatErrorGroupNameViolation,
103 AgoraChatErrorGroupMemberAttributesReachLimit,
104 AgoraChatErrorGroupMemberAttributesUpdateFailed,
106 AgoraChatErrorGroupMemberAttributesKeyReachLimit,
108 AgoraChatErrorGroupMemberAttributesValueReachLimit,
110 AgoraChatErrorChatroomInvalidId = 700,
111 AgoraChatErrorChatroomAlreadyJoined,
112 AgoraChatErrorChatroomNotJoined,
113 AgoraChatErrorChatroomPermissionDenied,
114 AgoraChatErrorChatroomMembersFull,
115 AgoraChatErrorChatroomNotExist,
116 AgoraChatErrorChatroomIllegalTag,
119 AgoraChatErrorUserCountExceed = 900,
120 AgoraChatErrorUserInfoDataLengthExceed = 901,
123 AgoraChatErrorContactAddFaild = 1000,
124 AgoraChatErrorContactReachLimit = 1001,
125 AgoraChatErrorContactReachLimitPeer = 1002,
127 AgoraChatErrorPresenceParamExceed = 1100,
128 AgoraChatErrorPresenceCannotSubscribeSelf = 1101,
130 AgoraChatErrorTranslateParamError = 1110,
131 AgoraChatErrorTranslateServiceNotEnabled = 1111,
132 AgoraChatErrorTranslateUsageLimit = 1112,
133 AgoraChatErrorTranslateServiceFail = 1113,
135 AgoraChatErrorModerationFailed = 1200,
136 AgoraChatErrorThirdServiceFailed = 1299,
138 AgoraChatErrorReactionReachLimit = 1300,
139 AgoraChatErrorReactionHasBeenOperated = 1301,
140 AgoraChatErrorReactionOperationIsIllegal = 1302,
141 AgoraChatErrorThreadNotExist = 1400,
142 AgoraChatErrorThreadAlreadyExist = 1401,
143 AgoraChatErrorThreadCreateMessageIllegal = 1402,
145 AgoraChatErrorNotSupportPush,
146 AgoraChatErrorPushBindFailed = 1501,
147 AgoraChatErrorPushUnBindFailed = 1502,
148};
149
150#endif