HyphenateChatSDK 3.9.9.1
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,
30 EMErrorInvalidAppkey = 100,
31 EMErrorInvalidUsername,
32 EMErrorInvalidPassword,
33 EMErrorInvalidURL,
34 EMErrorInvalidToken,
35 EMErrorUsernameTooLong,
36 EMErrorChannelSyncNotOpen,
37 EMErrorInvalidConversation,
38 EMErrorTokenExpire,
39 EMErrorTokeWillExpire,
41 EMErrorInvalidParam = 110,
42 EMErrorOperationUnsupported,
43 EMErrorQueryParamReachesLimit,
44 EMErrorReachLimit,
45 EMErrorRepeatedOperation,
47 EMErrorUserAlreadyLoginSame = 200,
48 EMErrorUserNotLogin,
49 EMErrorUserAuthenticationFailed,
50 EMErrorUserAlreadyExist,
51 EMErrorUserNotFound,
52 EMErrorUserIllegalArgument,
53 EMErrorUserLoginOnAnotherDevice,
54 EMErrorUserRemoved,
55 EMErrorUserRegisterFailed,
56 EMErrorUpdateApnsConfigsFailed,
57 EMErrorUserPermissionDenied,
58 EMErrorUserBindDeviceTokenFailed,
59 EMErrorUserUnbindDeviceTokenFailed,
60 EMErrorUserBindAnotherDevice,
61 EMErrorUserLoginTooManyDevices,
62 EMErrorUserMuted,
63 EMErrorUserKickedByChangePassword,
64 EMErrorUserKickedByOtherDevice,
65 EMErrorUserAlreadyLoginAnother,
66 EMErrorUserMutedByAdmin,
67 EMErrorUserDeviceChanged,
68 EMErrorUserNotOnRoster,
70 EMErrorServerNotReachable = 300,
71 EMErrorServerTimeout,
72 EMErrorServerBusy,
73 EMErrorServerUnknownError,
74 EMErrorServerGetDNSConfigFailed,
75 EMErrorServerServingForbidden,
76 EMErrorServerDecryptionFailed,
77 EMErrorServerGetRTCConfigFailed,
78 EMErrorFileNotFound = 400,
79 EMErrorFileInvalid,
80 EMErrorFileUploadFailed,
81 EMErrorFileDownloadFailed,
82 EMErrorFileDeleteFailed,
83 EMErrorFileTooLarge,
84 EMErrorFileContentImproper,
87 EMErrorMessageInvalid = 500,
88 EMErrorMessageIncludeIllegalContent,
89 EMErrorMessageTrafficLimit,
90 EMErrorMessageEncryption,
91 EMErrorMessageRecallTimeLimit,
92 EMErrorServiceNotEnable,
93 EMErrorMessageExpired,
94 EMErrorMessageIllegalWhiteList,
95 EMErrorMessageExternalLogicBlocked,
96 EMErrorMessageCurrentLimiting,
98 EMErrorGroupInvalidId = 600,
99 EMErrorGroupAlreadyJoined,
100 EMErrorGroupNotJoined,
101 EMErrorGroupPermissionDenied,
102 EMErrorGroupMembersFull,
103 EMErrorGroupNotExist,
104 EMErrorGroupSharedFileInvalidId,
105 EMErrorGroupDisabled,
107 EMErrorChatroomInvalidId = 700,
108 EMErrorChatroomAlreadyJoined,
109 EMErrorChatroomNotJoined,
110 EMErrorChatroomPermissionDenied,
111 EMErrorChatroomMembersFull,
112 EMErrorChatroomNotExist,
116 EMErrorUserCountExceed = 900,
117 EMErrorUserInfoDataLengthExceed = 901,
120 EMErrorContactAddFaild = 1000,
121 EMErrorContactReachLimit = 1001,
122 EMErrorContactReachLimitPeer = 1002,
124 EMErrorPresenceParamExceed = 1100,
125 EMErrorPresenceCannotSubscribeSelf = 1101,
127 EMErrorTranslateParamError = 1110,
128 EMErrorTranslateServiceNotEnabled = 1111,
129 EMErrorTranslateUsageLimit = 1112,
130 EMErrorTranslateServiceFail = 1113,
132 EMErrorModerationFailed = 1200,
133 EMErrorThirdServiceFailed = 1299,
135 EMErrorReactionReachLimit = 1300,
136 EMErrorReactionHasBeenOperated = 1301,
137 EMErrorReactionOperationIsIllegal = 1302,
138 EMErrorThreadNotExist = 1400,
139 EMErrorThreadAlreadyExist = 1401,
140 EMErrorThreadCreateMessageIllegal = 1402,
142 EMErrorPushBindFailed = 1501,
143 EMErrorPushUnBindFailed = 1502,
144};
145
146#endif