AgoraChatSDK 1.0.7
AgoraChatErrorCode.h
1
15#ifndef AgoraChatErrorCode_h
16#define AgoraChatErrorCode_h
17
18typedef NS_ENUM(NSInteger, AgoraChatErrorCode) {
19
20 AgoraChatErrorNoError = 0,
22 AgoraChatErrorGeneral = 1,
23 AgoraChatErrorNetworkUnavailable,
24 AgoraChatErrorDatabaseOperationFailed,
25 AgoraChatErrorExceedServiceLimit,
26 AgoraChatErrorServiceArrearages,
27 AgoraChatErrorPushReportActionFailed,
29 AgoraChatErrorInvalidAppkey = 100,
30 AgoraChatErrorInvalidUsername,
31 AgoraChatErrorInvalidPassword,
32 AgoraChatErrorInvalidURL,
33 AgoraChatErrorInvalidToken,
34 AgoraChatErrorUsernameTooLong,
35 AgoraChatErrorChannelSyncNotOpen,
36 AgoraChatErrorInvalidConversation,
37 AgoraChatErrorTokenExpire,
38 AgoraChatErrorTokeWillExpire,
40 AgoraChatErrorInvalidParam = 110,
41 AgoraChatErrorOperationUnsupported,
42 AgoraChatErrorQueryParamReachesLimit,
44 AgoraChatErrorUserAlreadyLoginSame = 200,
45 AgoraChatErrorUserNotLogin,
46 AgoraChatErrorUserAuthenticationFailed,
47 AgoraChatErrorUserAlreadyExist,
48 AgoraChatErrorUserNotFound,
49 AgoraChatErrorUserIllegalArgument,
50 AgoraChatErrorUserLoginOnAnotherDevice,
51 AgoraChatErrorUserRemoved,
52 AgoraChatErrorUserRegisterFailed,
53 AgoraChatErrorUpdateApnsConfigsFailed,
54 AgoraChatErrorUserPermissionDenied,
55 AgoraChatErrorUserBindDeviceTokenFailed,
56 AgoraChatErrorUserUnbindDeviceTokenFailed,
57 AgoraChatErrorUserBindAnotherDevice,
58 AgoraChatErrorUserLoginTooManyDevices,
59 AgoraChatErrorUserMuted,
60 AgoraChatErrorUserKickedByChangePassword,
61 AgoraChatErrorUserKickedByOtherDevice,
62 AgoraChatErrorUserAlreadyLoginAnother,
63 AgoraChatErrorUserMutedByAdmin,
64 AgoraChatErrorUserDeviceChanged,
65 AgoraChatErrorUserNotOnRoster,
67 AgoraChatErrorServerNotReachable = 300,
68 AgoraChatErrorServerTimeout,
69 AgoraChatErrorServerBusy,
70 AgoraChatErrorServerUnknownError,
71 AgoraChatErrorServerGetDNSConfigFailed,
72 AgoraChatErrorServerServingForbidden,
73 AgoraChatErrorServerDecryptionFailed,
74 AgoraChatErrorServerGetRTCConfigFailed,
75 AgoraChatErrorFileNotFound = 400,
76 AgoraChatErrorFileInvalid,
77 AgoraChatErrorFileUploadFailed,
78 AgoraChatErrorFileDownloadFailed,
79 AgoraChatErrorFileDeleteFailed,
80 AgoraChatErrorFileTooLarge,
81 AgoraChatErrorFileContentImproper,
84 AgoraChatErrorMessageInvalid = 500,
85 AgoraChatErrorMessageIncludeIllegalContent,
86 AgoraChatErrorMessageTrafficLimit,
87 AgoraChatErrorMessageEncryption,
88 AgoraChatErrorMessageRecallTimeLimit,
89 AgoraChatErrorServiceNotEnable,
90 AgoraChatErrorMessageExpired,
91 AgoraChatErrorMessageIllegalWhiteList,
92 AgoraChatErrorMessageExternalLogicBlocked,
93 AgoraChatErrorMessageCurrentLimiting,
95 AgoraChatErrorGroupInvalidId = 600,
96 AgoraChatErrorGroupAlreadyJoined,
97 AgoraChatErrorGroupNotJoined,
98 AgoraChatErrorGroupPermissionDenied,
99 AgoraChatErrorGroupMembersFull,
100 AgoraChatErrorGroupNotExist,
101 AgoraChatErrorGroupSharedFileInvalidId,
102 AgoraChatErrorGroupDisabled,
104 AgoraChatErrorChatroomInvalidId = 700,
105 AgoraChatErrorChatroomAlreadyJoined,
106 AgoraChatErrorChatroomNotJoined,
107 AgoraChatErrorChatroomPermissionDenied,
108 AgoraChatErrorChatroomMembersFull,
109 AgoraChatErrorChatroomNotExist,
113 AgoraChatErrorUserCountExceed = 900,
114 AgoraChatErrorUserInfoDataLengthExceed = 901,
117 AgoraChatErrorContactAddFaild = 1000,
118 AgoraChatErrorContactReachLimit = 1001,
119 AgoraChatErrorContactReachLimitPeer = 1002,
121 AgoraChatErrorPresenceParamExceed = 1100,
122 AgoraChatErrorPresenceCannotSubscribeSelf = 1101,
124 AgoraChatErrorTranslateParamError = 1110,
125 AgoraChatErrorTranslateServiceNotEnabled = 1111,
126 AgoraChatErrorTranslateUsageLimit = 1112,
127 AgoraChatErrorTranslateServiceFail = 1113,
129 AgoraChatErrorModerationFailed = 1200,
130 AgoraChatErrorThirdServiceFailed = 1299,
132 AgoraChatErrorReactionReachLimit = 1300,
133 AgoraChatErrorReactionHasBeenOperated = 1301,
134 AgoraChatErrorReactionOperationIsIllegal = 1302,
135 AgoraChatErrorThreadNotExist = 1400,
136 AgoraChatErrorThreadAlreadyExist = 1401,
137 AgoraChatErrorThreadCreateMessageIllegal = 1402,
139 AgoraChatErrorPushBindFailed = 1501,
140 AgoraChatErrorPushUnBindFailed = 1502,
141};
142
143#endif