MCPcopy
hub / github.com/silenceper/wechat / NewSDKErr

Function NewSDKErr

work/kf/error.go:83–93  ·  view source on GitHub ↗

NewSDKErr 初始化SDK实例错误信息

(code int64, msgList ...string)

Source from the content-addressed store, hash-verified

81
82// NewSDKErr 初始化SDK实例错误信息
83func NewSDKErr(code int64, msgList ...string) error {
84 if err := codeDic[code]; err != nil {
85 return err
86 }
87
88 // 返回未知的自定义错误
89 if len(msgList) > 0 {
90 return Error(strings.Join(msgList, ","))
91 }
92 return SDKUnknownError
93}

Callers 15

AccountAddMethod · 0.70
AccountDelMethod · 0.70
AccountUpdateMethod · 0.70
AccountListMethod · 0.70
AddContactWayMethod · 0.70
VerifyURLMethod · 0.70
GetCallbackMessageMethod · 0.70
GetCorpQualificationMethod · 0.70
SendMsgOnEventMethod · 0.70
ReceptionistAddMethod · 0.70
ReceptionistDelMethod · 0.70
ReceptionistListMethod · 0.70

Calls 1

ErrorTypeAlias · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…