MCPcopy Index your code
hub / github.com/cockroachdb/errors / UnwrapMulti

Function UnwrapMulti

errbase/unwrap.go:66–71  ·  view source on GitHub ↗

UnwrapMulti access the slice of causes that an error contains, if it is a multi-error.

(err error)

Source from the content-addressed store, hash-verified

64// UnwrapMulti access the slice of causes that an error contains, if it is a
65// multi-error.
66func UnwrapMulti(err error) []error {
67 if me, ok := err.(interface{ Unwrap() []error }); ok {
68 return me.Unwrap()
69 }
70 return nil
71}

Callers 6

IsFunction · 0.92
TestMultiErrorUnwrapFunction · 0.92
AsFunction · 0.92
visitAllMultiFunction · 0.92
formatRecursiveMethod · 0.85
EncodeErrorFunction · 0.85

Calls 1

UnwrapMethod · 0.65

Tested by 1

TestMultiErrorUnwrapFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…