STSMSGErrorCode
enum STSMSGErrorCode {}
StraaS.io messaging SDK error code
-
Network error, underlying error object is included in the user info dictionary.
Declaration
Objective-C
STSMSGErrorCodeNetwork = 0
-
Channel code should not be an empty string.
Declaration
Objective-C
STSMSGErrorCodeChannelCodeLength = 1
-
Auto create chat requires member authorization(a member JWT is needed).
Declaration
Objective-C
STSMSGErrorCodeGuestCreateChatNotSupported = 2
-
Can not perform operation(disconnect from channel, send message, get users, etc.) because channel is not connected.
Declaration
Objective-C
STSMSGErrorCodeChannelNotConnected = 3
-
Can not connect to channel because channel is already connected.
Declaration
Objective-C
STSMSGErrorCodeChannelAlreadyConnected = 4
-
Current user is a member. Can not change member name via StraaS.io messaging service.
Declaration
Objective-C
STSMSGErrorCodeMemberNicknameUpdateNotSupported = 5
-
Nickname length must be between 1~20 characters.
Declaration
Objective-C
STSMSGErrorCodeNicknameLength = 6
-
Message length must be between 1~300 characters.
Declaration
Objective-C
STSMSGErrorCodeMessageLength = 7
-
The role to be updated can only be NORMAL or MODERATER.
Declaration
Objective-C
STSMSGErrorCodeUserRole = 8
-
Member JWT is invalid or expired. Please try again with a new member JWT.
Declaration
Objective-C
STSMSGErrorCodeUnauthorized = 9
-
This task is not permitted by server since what you want to do is not allowed or the identity of current user has no permission to execute the task.
Declaration
Objective-C
STSMSGErrorCodePermission = 10
-
Can not connect to chatroom since it is not found on our server. Please make sure you’ve created this chatroom before trying to connect it.
Declaration
Objective-C
STSMSGErrorCodeChatroomNotfound = 11
-
Can not update role since member id is not found. Please make sure you’ve created this member id before trying to update role.
Declaration
Objective-C
STSMSGErrorCodeMemberIdNotFound = 12
-
Archive Id cannot be found, please check if the archive id existed.
Declaration
Objective-C
STSMSGErrorCodeArchiveIdNotFound = 13
-
Input value is invalid, please check the error’s userInfo[NSLocalizedDescriptionKey] to get more informations.
Declaration
Objective-C
STSMSGErrorCodeInputValueInvalid = 14
-
Server side error happened, please try again later or contact with service provider.
Declaration
Objective-C
STSMSGErrorCodeServer = 15
-
SDK internal error happened, please try again or report issue.
Declaration
Objective-C
STSMSGErrorCodeInternal = 16
-
Aggregate data length must be between 1~100 characters.
Declaration
Objective-C
STSMSGErrorCodeAggregatedDataLength = 17
-
Raw data must be an object which can be converted to JSON object.
Declaration
Objective-C
STSMSGErrorCodeRawDataFormatNotAllowed = 18
-
Too many requests for the server, please try again later.
Declaration
Objective-C
STSMSGErrorCodeTooManyRequests = 19
-
The message you sent contains banned word(s), please see document for more information.
Declaration
Objective-C
STSMSGErrorCodeUnprocessableEntity = 20