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

Method Error

util/error.go:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func (c *CommonError) Error() string {
17 return fmt.Sprintf("%s Error , errcode=%d , errmsg=%s", c.apiName, c.ErrCode, c.ErrMsg)
18}
19
20// NewCommonError 新建 CommonError 错误,对于无 errcode 和 errmsg 的返回也可以返回该通用错误
21func NewCommonError(apiName string, code int64, msg string) *CommonError {

Callers 9

RSADecryptFunction · 0.45
TestSignatureFunction · 0.45
TestQueryFunction · 0.45
TestTemplateFunction · 0.45
TestDecodeWithErrorFunction · 0.45

Calls

no outgoing calls

Tested by 8

TestSignatureFunction · 0.36
TestQueryFunction · 0.36
TestTemplateFunction · 0.36
TestDecodeWithErrorFunction · 0.36