ChatError
public enum ChatError: Int, SBErrorCode
extension ChatError: Decodable
Chat Error code
-
Undocumented
Declaration
Swift
case invalidParameterValueString = 400100
-
Undocumented
Declaration
Swift
case invalidParameterValueNumber = 400101
-
Undocumented
Declaration
Swift
case invalidParameterValueList = 400102
-
Undocumented
Declaration
Swift
case invalidParameterValueJson = 400103
-
Undocumented
Declaration
Swift
case invalidParameterValueBoolean = 400104
-
Undocumented
Declaration
Swift
case invalidParameterValueRequired = 400105
-
Undocumented
Declaration
Swift
case invalidParameterValuePositive = 400106
-
Undocumented
Declaration
Swift
case invalidParameterValueNegative = 400107
-
Undocumented
Declaration
Swift
case nonAuthorized = 400108
-
Undocumented
Declaration
Swift
case tokenExpired = 400109
-
Undocumented
Declaration
Swift
case invalidChannelURL = 400110
-
Undocumented
Declaration
Swift
case invalidParameterValue = 400111
-
Undocumented
Declaration
Swift
case unusableCharacterIncluded = 400151
-
Undocumented
Declaration
Swift
case notFoundInDatabase = 400201
-
Undocumented
Declaration
Swift
case duplicatedData = 400202
-
Undocumented
Declaration
Swift
case reachedMaxCount = 400203
-
Undocumented
Declaration
Swift
case userDeactivated = 400300
-
Undocumented
Declaration
Swift
case userNotExist = 400301
-
Undocumented
Declaration
Swift
case accessTokenNotValid = 400302
-
Undocumented
Declaration
Swift
case authUnknownError = 400303
-
Undocumented
Declaration
Swift
case appIdNotValid = 400304
-
Undocumented
Declaration
Swift
case authUserIdTooLong = 400305
-
Undocumented
Declaration
Swift
case authPlanQuotaExceeded = 400306
-
Undocumented
Declaration
Swift
case sessionKeyExpired = 400309
-
Undocumented
Declaration
Swift
case sessionTokenRevoked = 400310
-
Undocumented
Declaration
Swift
case expiringSessionRequired = 400312
-
Undocumented
Declaration
Swift
case authSessionNotAllowed = 400313
-
Undocumented
Declaration
Swift
case invalidApiToken = 400401
-
Undocumented
Declaration
Swift
case parameterMissing = 400402
-
Undocumented
Declaration
Swift
case invalidJsonBody = 400403
-
Undocumented
Declaration
Swift
case conflict = 409000
-
Undocumented
Declaration
Swift
case statUploadNotAllowed = 403200
-
Undocumented
Declaration
Swift
case internalServerError = 500901
-
Undocumented
Declaration
Swift
case rateLimitExceeded = 500910
-
Undocumented
Declaration
Swift
case unknownError = 800000
-
Undocumented
Declaration
Swift
case invalidInitialization = 800100
-
Undocumented
Declaration
Swift
case connectionRequired = 800101
-
Undocumented
Declaration
Swift
case connectionCanceled = 800102
-
Undocumented
Declaration
Swift
case invalidParameter = 800110
-
Undocumented
Declaration
Swift
case notSupported = 800111
-
Undocumented
Declaration
Swift
case wrongChannelType = 800150
-
Undocumented
Declaration
Swift
case markAsReadRateLimitExceeded = 800160
-
Undocumented
Declaration
Swift
case queryInProgress = 800170
-
Undocumented
Declaration
Swift
case ackTimeout = 800180
-
Undocumented
Declaration
Swift
case loginTimeout = 800190
-
Undocumented
Declaration
Swift
case webSocketConnectionClosed = 800200
-
Undocumented
Declaration
Swift
case webSocketConnectionFailed = 800210
-
Undocumented
Declaration
Swift
case timerWasExpired = 800301
-
Undocumented
Declaration
Swift
case timerWasAlreadyDone = 800302
-
Undocumented
Declaration
Swift
case pendingError = 800400
-
Undocumented
Declaration
Swift
case passedInvalidAccessToken = 800500
-
Undocumented
Declaration
Swift
case sessionKeyRefreshSucceeded = 800501
-
Undocumented
Declaration
Swift
case sessionKeyRefreshFailed = 800502
-
Undocumented
Declaration
Swift
case collectionDisposed = 800600
-
Undocumented
Declaration
Swift
case localDatabaseError = 800700
-
Undocumented
Declaration
Swift
case networkError = 800120
-
Undocumented
Declaration
Swift
case networkRoutingError = 800121
-
Undocumented
Declaration
Swift
case malformedData = 800130
-
Undocumented
Declaration
Swift
case malformedErrorData = 800140
-
Undocumented
Declaration
Swift
case requestFailed = 800220
-
Undocumented
Declaration
Swift
case fileUploadCancelFailed = 800230
-
Undocumented
Declaration
Swift
case fileUploadCanceled = 800240
-
Undocumented
Declaration
Swift
case fileUploadTimeout = 800250
-
Undocumented
Declaration
Swift
case fileSizeLimitExceeded = 800260
-
Undocumented
Declaration
Swift
case socketLoginRequired = 900010
-
Undocumented
Declaration
Swift
case socketUserNotMember = 900020
-
Undocumented
Declaration
Swift
case socketUserDeactivated = 900021
-
Undocumented
Declaration
Swift
case socketUserNotOwnerOfMessage = 900022
-
Undocumented
Declaration
Swift
case socketUserSendMessageNotAllowed = 900023
-
Undocumented
Declaration
Swift
case socketInvalidMentionForMessage = 900025
-
Undocumented
Declaration
Swift
case socketInvalidPushOptionForMessage = 900026
-
Undocumented
Declaration
Swift
case socketTooManyMetaKeyForMessage = 900027
-
Undocumented
Declaration
Swift
case socketTooManyMetaValueForMessage = 900028
-
Undocumented
Declaration
Swift
case socketTooManyMetaArrayForMessage = 900029
-
Undocumented
Declaration
Swift
case socketGuestNotAllowed = 900030
-
Undocumented
Declaration
Swift
case socketMutedUserInApplicationSendMessageNotAllowed = 900040
-
Undocumented
Declaration
Swift
case socketMutedUserInChannelSendMessageNotAllowed = 900041
-
Undocumented
Declaration
Swift
case socketChannelFrozen = 900050
-
Undocumented
Declaration
Swift
case socketProfanityMessageBlocked = 900060
-
Undocumented
Declaration
Swift
case socketBannedUrlsBlocked = 900061
-
Undocumented
Declaration
Swift
case socketRestrictedDomainBlocked = 900065
-
Undocumented
Declaration
Swift
case socketModeratedFileBlocked = 900066
-
Undocumented
Declaration
Swift
case socketEnterDeletedChannel = 900070
-
Undocumented
Declaration
Swift
case socketBlockedUserReceiveMessageNotAllowed = 900080
-
Undocumented
Declaration
Swift
case socketDeactivatedUserReceiveMessageNotAllowed = 900081
-
Undocumented
Declaration
Swift
case socketWrongChannelType = 900090
-
Undocumented
Declaration
Swift
case socketBannedUserSendMessageNotAllowed = 900100
-
Undocumented
Declaration
Swift
case socketTooManyMessages = 900200
-
Undocumented
Declaration
Swift
case socketMessageNotFound = 900300
-
Undocumented
Declaration
Swift
case socketTooManyParticipants = 900400
-
Undocumented
Declaration
Swift
case socketChannelNotFound = 900500
-
Undocumented
Declaration
Swift
public var code: Int
-
Undocumented
Declaration
Swift
public var message: String
-
Undocumented
Declaration
Swift
public func asSBError(message: String?) -> SBError
-
Adds a specific reason for the error as
localizedFailureReason
.Since
4.15.0Declaration
Swift
public func asSBError(message: String?, failureReason: String) -> SBError
-
Default constructor.
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
Decoder
instance