JMSGSDKErrorCode Constants Reference

Declared in JMSGConstants.h

JMSGSDKErrorCode

错误码以 86 打头,都为 iOS SDK 内部的错误码

Definition

typedef NS_ENUM(NSInteger, JMSGSDKErrorCode ) {
   kJMSGErrorSDKNetworkDownloadFailed = 860015,
   kJMSGErrorSDKNetworkOtherError = 860016,
   kJMSGErrorSDKNetworkTokenFailed = 860017,
   kJMSGErrorSDKNetworkUploadFailed = 860018,
   kJMSGErrorSDKNetworkUploadTokenVerifyFailed = 860019,
   kJMSGErrorSDKNetworkUploadTokenGetFailed = 860020,
   kJMSGErrorSDKNetworkResultUnexpected = 860021,
   kJMSGErrorSDKNetworkDataFormatInvalid = 860030,
   kJMSGErrorSDKDBDeleteFailed = 861000,
   kJMSGErrorSDKDBUpdateFailed = 861001,
   kJMSGErrorSDKDBSelectFailed = 861002,
   kJMSGErrorSDKDBInsertFailed = 861003,
   kJMSGErrorSDKDBMigrateFailed = 861004,
   kJMSGErrorSDKParamAppkeyInvalid = 861100,
   kJMSGErrorSDKParamInternalInvalid = 861101,
   kJMSGQiniuTokenInvalid = 862001,
   kJMSGErrorSDKParamUsernameInvalid = 863001,
   kJMSGErrorSDKParamPasswordInvalid = 863002,
   kJMSGErrorSDKUserNotLogin = 863004,
   kJMSGErrorSDKUserNumberOverflow = 863005,
   kJMSGErrorSDKUserInvalidState = 863006,
   kJMSGErrorSDKUserLogoutingState = 863007,
   kJMSGErrorSDKUserAddFriendFailState = 863008,
   kJMSGErrorSDKUserDeleteFriendFailState = 863009,
   kJMSGErrorSDKNotMediaMessage = 864001,
   kJMSGErrorSDKMediaResourceMissing = 864002,
   kJMSGErrorSDKMediaCrcCodeIllegal = 864003,
   kJMSGErrorSDKMediaCrcVerifyFailed = 864004,
   kJMSGErrorSDKMediaUploadEmptyFile = 864005,
   kJMSGErrorSDKMediaHashCodeIllegal = 864006,
   kJMSGErrorSDKMediaHashVerifyFailed = 864007,
   kJMSGErrorSDKMessageNotSupportForward = 864008,
   kJMSGErrorSDKParamContentInvalid = 865001,
   kJMSGErrorSDKParamMessageNil = 865002,
   kJMSGErrorSDKMessageNotPrepared = 865003,
   kJMSGErrorSDKMessageNotInGroup = 865004,
   kJMSGErrorSDKMessageProtocolInvalidJsonFormat = 865005,
   kJMSGErrorSDKMessageProtocolLackFields = 865006,
   kJMSGErrorSDKMessageProtocolInvalidFieldValue = 865007,
   kJMSGErrorSDKMessageProtocolUpgradeNeeded = 865008,
   kJMSGErrorSDKMessageProtocolContentTypeNotSupport = 865009,
   kJMSGErrorSDKMessageStatusNotLegal = 865010,
   kJMSGErrorSDKParamConversationTypeUnknown = 866001,
   kJMSGErrorSDKParamConversationUsernameInvalid = 866002,
   kJMSGErrorSDKParamConversationGroupIdInvalid = 866003,
   kJMSGErrorSDKparamConversationNotFound = 866004,
   kJMSGErrorSDKConversationAvatarNotFound = 866005,
   kJMSGErrorSDKParamGroupGroupIdInvalid = 867001,
   kJMSGErrorSDKParamGroupGroupInfoInvalid = 867002,
   kJMSGErrorSDKChatRoomNotSupport = 868001,
   kJMSGErrorSDKChatRoomNotExist = 868002,
   kJMSGErrorSDKUnknownError = 869999,
};

Constants

kJMSGErrorSDKNetworkDownloadFailed

下载失败

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkOtherError

其他网络原因

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkTokenFailed

服务器获取用户Token失败

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkUploadFailed

上传资源文件失败

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkUploadTokenVerifyFailed

上传资源文件Token验证失败

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkUploadTokenGetFailed

获取服务器Token失败

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkResultUnexpected

服务器返回数据错误(没有按约定返回)

Declared In JMSGConstants.h.

kJMSGErrorSDKNetworkDataFormatInvalid

服务器端返回数据格式错误

Declared In JMSGConstants.h.

kJMSGErrorSDKDBDeleteFailed

数据库删除失败 (预期应该成功)

Declared In JMSGConstants.h.

kJMSGErrorSDKDBUpdateFailed

数据库更新失败 (预期应该成功)

Declared In JMSGConstants.h.

kJMSGErrorSDKDBSelectFailed

数据库查询失败 (预期应该成功)

Declared In JMSGConstants.h.

kJMSGErrorSDKDBInsertFailed

数据库插入失败 (预期应该成功)

Declared In JMSGConstants.h.

kJMSGErrorSDKDBMigrateFailed

数据库迁移失败

Declared In JMSGConstants.h.

kJMSGErrorSDKParamAppkeyInvalid

Appkey 不合法

Declared In JMSGConstants.h.

kJMSGErrorSDKParamInternalInvalid

SDK 内部方法参数检查错误

Declared In JMSGConstants.h.

kJMSGQiniuTokenInvalid

七牛相关

Declared In JMSGConstants.h.

kJMSGErrorSDKParamUsernameInvalid

用户名不合法

Declared In JMSGConstants.h.

kJMSGErrorSDKParamPasswordInvalid

用户密码不合法

Declared In JMSGConstants.h.

kJMSGErrorSDKUserNotLogin

用户未登录

Declared In JMSGConstants.h.

kJMSGErrorSDKUserNumberOverflow

JMessage SDK 的错误码汇总

Declared In JMSGConstants.h.

kJMSGErrorSDKUserInvalidState

JMessage SDK 的错误码汇总

Declared In JMSGConstants.h.

kJMSGErrorSDKUserLogoutingState

JMessage SDK 的错误码汇总

Declared In JMSGConstants.h.

kJMSGErrorSDKUserAddFriendFailState

JMessage SDK 的错误码汇总

Declared In JMSGConstants.h.

kJMSGErrorSDKUserDeleteFriendFailState

JMessage SDK 的错误码汇总

Declared In JMSGConstants.h.

kJMSGErrorSDKNotMediaMessage

这不是一条媒体消息

Declared In JMSGConstants.h.

kJMSGErrorSDKMediaResourceMissing

下载媒体资源路径或者数据意外丢失

Declared In JMSGConstants.h.

kJMSGErrorSDKMediaCrcCodeIllegal

媒体CRC码无效

Declared In JMSGConstants.h.

kJMSGErrorSDKMediaCrcVerifyFailed

媒体CRC校验失败

Declared In JMSGConstants.h.

kJMSGErrorSDKMediaUploadEmptyFile

上传媒体文件时, 发现文件不存在

Declared In JMSGConstants.h.

kJMSGErrorSDKMediaHashCodeIllegal

媒体HASH码无效

Declared In JMSGConstants.h.

kJMSGErrorSDKMediaHashVerifyFailed

媒体HASH校验失败

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageNotSupportForward

这条消息不支持转发

Declared In JMSGConstants.h.

kJMSGErrorSDKParamContentInvalid

无效的消息内容

Declared In JMSGConstants.h.

kJMSGErrorSDKParamMessageNil

空消息

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageNotPrepared

消息不符合发送的基本条件检查

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageNotInGroup

你不是群组成员

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageProtocolInvalidJsonFormat

非法的 JSON 格式, 无法解析 Message JSON Protocol

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageProtocolLackFields

消息协议格式不正确, 可能缺少了字段

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageProtocolInvalidFieldValue

消息协议格式不正确, 字段值非法

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageProtocolUpgradeNeeded

本地消息协议需要升级(收到新版本)

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageProtocolContentTypeNotSupport

收到不支持消息内容类型(建议升级)

Declared In JMSGConstants.h.

kJMSGErrorSDKMessageStatusNotLegal

消息状态不合法

Declared In JMSGConstants.h.

kJMSGErrorSDKParamConversationTypeUnknown

未知的会话类型

Declared In JMSGConstants.h.

kJMSGErrorSDKParamConversationUsernameInvalid

会话 username 无效

Declared In JMSGConstants.h.

kJMSGErrorSDKParamConversationGroupIdInvalid

会话 groupId 无效

Declared In JMSGConstants.h.

kJMSGErrorSDKparamConversationNotFound

会话没有找到

Declared In JMSGConstants.h.

kJMSGErrorSDKConversationAvatarNotFound

会话头像没找到

Declared In JMSGConstants.h.

kJMSGErrorSDKParamGroupGroupIdInvalid

groupId 无效

Declared In JMSGConstants.h.

kJMSGErrorSDKParamGroupGroupInfoInvalid

group 相关字段无效

Declared In JMSGConstants.h.

kJMSGErrorSDKChatRoomNotSupport

ChatRoom 不支持

Declared In JMSGConstants.h.

kJMSGErrorSDKChatRoomNotExist

ChatRoom 不存在

Declared In JMSGConstants.h.

kJMSGErrorSDKUnknownError

unknown

Declared In JMSGConstants.h.

Declared In

JMSGConstants.h