mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-22 21:29:51 +08:00
1
This commit is contained in:
parent
653fce11da
commit
979f617209
@ -2,6 +2,7 @@ package constant
|
||||
|
||||
import (
|
||||
sdkws "Open_IM/pkg/proto/sdk_ws"
|
||||
"Open_IM/pkg/utils"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
@ -23,6 +24,14 @@ func (e *ErrInfo) Code() int32 {
|
||||
return e.ErrCode
|
||||
}
|
||||
|
||||
func (e *ErrInfo) Warp() error {
|
||||
return utils.Wrap(e, "")
|
||||
}
|
||||
|
||||
func (e *ErrInfo) WarpMessage(msg string) error {
|
||||
return utils.Wrap(e, msg)
|
||||
}
|
||||
|
||||
func NewErrNetwork(err error) error {
|
||||
return toDetail(err, ErrNetwork)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user