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

Method toJSON

pkg/error/error.go:160–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (err FinalError) toJSON() []byte {
161 b, e := json.Marshal(err)
162 if e != nil {
163 logs.Errorf("marshal error failed, err=%v, jsonerr=%s", err, e.Error())
164 }
165 return b
166}
167
168// WriteTo xxx
169func (err FinalError) WriteTo(w http.ResponseWriter) FinalError {

Callers

nothing calls this directly

Calls 3

MarshalFunction · 0.92
ErrorfFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected