Skip to content

[BUG] error desc error #863

Open
Open
@bigman798

Description

@bigman798

OpenIM SDK Version

3.8.3

OpenIM Server Version

3.8.3

SDK Platform

Flutter SDK

Device Model

iPhone 15

Operating System Version

iOS 16.3

Bug Description and Steps to Reproduce

错误描述有问题
`
import "github.com/openimsdk/tools/errs"
var (
// 通用错误(Common errors)
ErrArgs = errs.NewCodeError(ArgsError, "Invalid input arguments") // 传入的参数无效或格式错误
ErrCtxDeadline = errs.NewCodeError(CtxDeadlineExceededError, "Context deadline exceeded") // 操作超出了上下文的超时时间
ErrSdkInternal = errs.NewCodeError(SdkInternalError, "Internal SDK error") // SDK 内部出现未知错误
ErrNetwork = errs.NewCodeError(NetworkError, "Network error") // 网络请求失败,可能是断网或其他原因
ErrNetworkTimeOut = errs.NewCodeError(NetworkTimeoutError, "Network timeout error") // 网络请求超时,服务器或客户端未在指定时间内响应

ErrGroupIDNotFound = errs.NewCodeError(GroupIDNotFoundError, "Group ID not found") // 群组 ID 不存在,可能已被解散
ErrUserIDNotFound  = errs.NewCodeError(UserIDNotFoundError, "User ID not found") // 用户 ID 未找到,可能未注册或已删除

ErrResourceLoad = errs.NewCodeError(ResourceLoadNotCompleteError, "Resource initialization incomplete") // 资源初始化未完成,可能导致部分功能不可用

// 消息相关错误(Message-related errors)
ErrFileNotFound             = errs.NewCodeError(FileNotFoundError, "File not found") // 发送的文件或消息记录未找到,可能已被删除
ErrMsgDecodeBinaryWs        = errs.NewCodeError(MsgDecodeBinaryWsError, "Message binary WebSocket decoding failed") // WebSocket 消息二进制解码失败,数据格式可能错误
ErrMsgDeCompression         = errs.NewCodeError(MsgDeCompressionError, "Message decompression failed") // 消息解压失败,可能数据损坏或压缩格式不支持
ErrMsgBinaryTypeNotSupport  = errs.NewCodeError(MsgBinaryTypeNotSupportError, "Message type not supported") // 消息类型不受支持,例如尝试处理未知格式的消息
ErrMsgRepeated              = errs.NewCodeError(MsgRepeatError, "Only failed messages can be resent") // 消息重复发送,仅允许失败的消息进行重试
ErrMsgContentTypeNotSupport = errs.NewCodeError(MsgContentTypeNotSupportError, "Message content type not supported") // 消息内容类型不支持,例如发送了不允许的格式
ErrMsgHasNoSeq              = errs.NewCodeError(MsgHasNoSeqError, "Message has no sequence number") // 消息缺少序列号,可能导致排序或查找失败
ErrMsgHasDeleted            = errs.NewCodeError(MsgHasDeletedError, "Message has been deleted") // 目标消息已被删除,无法执行相关操作

// 会话相关错误(Conversation-related errors)
ErrNotSupportOpt  = errs.NewCodeError(NotSupportOptError, "Operation not supported for supergroup") // 超级群不支持该操作,可能是权限限制
ErrNotSupportType = errs.NewCodeError(NotSupportTypeError, "Only supergroup type supported") // 仅支持超级群类型,该操作无法在普通群或单聊中执行
ErrUnreadCount    = errs.NewCodeError(UnreadCountError, "Unread count is zero") // 未读消息计数为 0,无法执行清除未读数等操作

// 群组相关错误(Group-related errors)
ErrGroupType = errs.NewCodeError(GroupTypeErr, "Invalid group type") // 群组类型无效,可能是非法类型或不支持的群组模式

// 登录相关错误(Login-related errors)
ErrLoginOut    = errs.NewCodeError(LoginOutError, "User has logged out") // 用户已主动或被动登出
ErrLoginRepeat = errs.NewCodeError(LoginRepeatError, "User has logged in repeatedly") // 用户重复登录,可能导致会话冲突

)
`

Screenshots Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions