Skip to content

Commit

Permalink
feat: add msg gateway error. (#12)
Browse files Browse the repository at this point in the history
* optimization: slice sub.

* fix: rpc logger add more detail info.

* feat: add msg gateway error.
  • Loading branch information
FGadvancer authored Jan 19, 2024
1 parent a2eb1f0 commit edd31cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions errs/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ const (
TokenNotExistError = 1507

// 长连接网关错误码.
ConnOverMaxNumLimit = 1601
ConnArgsErr = 1602

ConnOverMaxNumLimit = 1601
ConnArgsErr = 1602
PushMsgErr = 1603
IOSBackgroundPushErr = 1604
// S3错误码.
FileUploadedExpiredError = 1701 // 上传过期
)
4 changes: 3 additions & 1 deletion errs/predefine.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ var (

ErrConnOverMaxNumLimit = NewCodeError(ConnOverMaxNumLimit, "ConnOverMaxNumLimit")

ErrConnArgsErr = NewCodeError(ConnArgsErr, "args err, need token, sendID, platformID")
ErrConnArgsErr = NewCodeError(ConnArgsErr, "args err, need token, sendID, platformID")
ErrPushMsgErr = NewCodeError(PushMsgErr, "push msg err")
ErrIOSBackgroundPushErr = NewCodeError(IOSBackgroundPushErr, "ios background push err")

ErrFileUploadedExpired = NewCodeError(FileUploadedExpiredError, "FileUploadedExpiredError")
)

0 comments on commit edd31cf

Please sign in to comment.