MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / toJSON

Method toJSON

pkg/error/error.go:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func (err BasicError) toJSON() []byte {
101 b, e := json.Marshal(err)
102 if e != nil {
103 logs.Errorf("marshal error failed, err=%v, jsonerr=%s", err, e.Error())
104 }
105 return b
106}
107
108// FinalError preserve the error stack
109type FinalError struct {

Callers 1

ErrorMethod · 0.95

Calls 3

MarshalFunction · 0.92
ErrorfFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected