HyphenateChatSDK 4.10.0
EMErrorCode.h
1
15#ifndef EMErrorCode_h
16#define EMErrorCode_h
17
18typedef NS_ENUM(NSInteger, EMErrorCode) {
19
20 EMErrorNoError = 0,
22 EMErrorGeneral = 1,
23 EMErrorNetworkUnavailable,
24 EMErrorDatabaseOperationFailed,
25 EMErrorExceedServiceLimit,
26 EMErrorServiceArrearages,
27 EMErrorPushReportActionFailed,
28 EMErrorPartialSuccess,
29 EMErrorAppActiveNumbersReachLimitation,
31 EMErrorInvalidAppkey = 100,
32 EMErrorInvalidUsername,
33 EMErrorInvalidPassword,
34 EMErrorInvalidURL,
35 EMErrorInvalidToken,
36 EMErrorUsernameTooLong,
37 EMErrorChannelSyncNotOpen,
38 EMErrorInvalidConversation,
39 EMErrorTokenExpire,
40 EMErrorTokeWillExpire,
42 EMErrorInvalidParam = 110,
43 EMErrorOperationUnsupported,
44 EMErrorQueryParamReachesLimit,
46 EMErrorUserAlreadyLoginSame = 200,
47 EMErrorUserNotLogin,
48 EMErrorUserAuthenticationFailed,
49 EMErrorUserAlreadyExist,
50 EMErrorUserNotFound,
51 EMErrorUserIllegalArgument,
52 EMErrorUserLoginOnAnotherDevice,
53 EMErrorUserRemoved,
54 EMErrorUserRegisterFailed,
55 EMErrorUpdateApnsConfigsFailed,
56 EMErrorUserPermissionDenied,
57 EMErrorUserBindDeviceTokenFailed,
58 EMErrorUserUnbindDeviceTokenFailed,
59 EMErrorUserBindAnotherDevice,
60 EMErrorUserLoginTooManyDevices,
61 EMErrorUserMuted,
62 EMErrorUserKickedByChangePassword,
63 EMErrorUserKickedByOtherDevice,
64 EMErrorUserAlreadyLoginAnother,
65 EMErrorUserMutedByAdmin,
66 EMErrorUserDeviceChanged,
67 EMErrorUserNotOnRoster,
69 EMErrorServerNotReachable = 300,
70 EMErrorServerTimeout,
71 EMErrorServerBusy,
72 EMErrorServerUnknownError,
73 EMErrorServerGetDNSConfigFailed,
74 EMErrorServerServingForbidden,
75 EMErrorServerDecryptionFailed,
76 EMErrorServerGetRTCConfigFailed,
77 EMErrorServerNoMatchURL,
79 EMErrorFileNotFound = 400,
80 EMErrorFileInvalid,
81 EMErrorFileUploadFailed,
82 EMErrorFileDownloadFailed,
83 EMErrorFileDeleteFailed,
84 EMErrorFileTooLarge,
85 EMErrorFileContentImproper,
86 EMErrorFileExpired,
89 EMErrorMessageInvalid = 500,
90 EMErrorMessageIncludeIllegalContent,
91 EMErrorMessageTrafficLimit,
92 EMErrorMessageEncryption,
93 EMErrorMessageRecallTimeLimit,
94 EMErrorServiceNotEnable,
95 EMErrorMessageExpired,
96 EMErrorMessageIllegalWhiteList,
97 EMErrorMessageExternalLogicBlocked,
98 EMErrorMessageCurrentLimiting,
99 EMErrorMessageSizeLimit,
100 EMErrorEditFailed,
102 EMErrorGroupInvalidId = 600,
103 EMErrorGroupAlreadyJoined,
104 EMErrorGroupNotJoined,
105 EMErrorGroupPermissionDenied,
106 EMErrorGroupMembersFull,
107 EMErrorGroupSharedFileInvalidId,
108 EMErrorGroupNotExist,
109 EMErrorGroupDisabled,
110 EMErrorGroupNameViolation,
111 EMErrorGroupMemberAttributesReachLimit,
112 EMErrorGroupMemberAttributesUpdateFailed,
114 EMErrorGroupMemberAttributesKeyReachLimit,
116 EMErrorGroupMemberAttributesValueReachLimit,
117 EMErrorGroupUserInBlockList,
119 EMErrorChatroomInvalidId = 700,
120 EMErrorChatroomAlreadyJoined,
121 EMErrorChatroomNotJoined,
122 EMErrorChatroomPermissionDenied,
123 EMErrorChatroomMembersFull,
124 EMErrorChatroomNotExist,
125 EMErrorChatroomOwnerNotAllowLeave,
126 EMErrorChatroomUserInBlockList,
129 EMErrorUserCountExceed = 900,
130 EMErrorUserInfoDataLengthExceed = 901,
133 EMErrorContactAddFaild = 1000,
134 EMErrorContactReachLimit = 1001,
135 EMErrorContactReachLimitPeer = 1002,
137 EMErrorPresenceParamExceed = 1100,
138 EMErrorPresenceCannotSubscribeSelf = 1101,
140 EMErrorTranslateParamError = 1110,
141 EMErrorTranslateServiceNotEnabled = 1111,
142 EMErrorTranslateUsageLimit = 1112,
143 EMErrorTranslateServiceFail = 1113,
145 EMErrorModerationFailed = 1200,
146 EMErrorThirdServiceFailed = 1299,
148 EMErrorReactionReachLimit = 1300,
149 EMErrorReactionHasBeenOperated = 1301,
150 EMErrorReactionOperationIsIllegal = 1302,
151 EMErrorThreadNotExist = 1400,
152 EMErrorThreadAlreadyExist = 1401,
153 EMErrorThreadCreateMessageIllegal = 1402,
155 EMErrorNotSupportPush,
156 EMErrorPushBindFailed = 1501,
157 EMErrorPushUnBindFailed = 1502,
158};
159
160#endif