MCPcopy
hub / github.com/go-yaml/yaml / handleErr

Function handleErr

yaml.go:289–297  ·  view source on GitHub ↗
(err *error)

Source from the content-addressed store, hash-verified

287}
288
289func handleErr(err *error) {
290 if v := recover(); v != nil {
291 if e, ok := v.(yamlError); ok {
292 *err = e.err
293 } else {
294 panic(v)
295 }
296 }
297}
298
299type yamlError struct {
300 err error

Callers 8

DecodeMethod · 0.85
DecodeMethod · 0.85
unmarshalFunction · 0.85
MarshalFunction · 0.85
EncodeMethod · 0.85
EncodeMethod · 0.85
CloseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected