MCPcopy Create free account
hub / github.com/cockroachdb/errors / GetAllSafeDetails

Function GetAllSafeDetails

errbase/safe_details.go:34–40  ·  view source on GitHub ↗

GetAllSafeDetails collects the safe details from the given error object and all its causes. The details are collected from outermost to innermost level of cause.

(err error)

Source from the content-addressed store, hash-verified

32// and all its causes.
33// The details are collected from outermost to innermost level of cause.
34func GetAllSafeDetails(err error) []SafeDetailPayload {
35 var details []SafeDetailPayload
36 for ; err != nil; err = UnwrapOnce(err) {
37 details = append(details, GetSafeDetails(err))
38 }
39 return details
40}
41
42// GetSafeDetails collects the safe details from the given error
43// object. If it is a wrapper, only the details from the wrapper are

Callers 2

GetAllSafeDetailsFunction · 0.92
TestFormatFunction · 0.92

Calls 2

UnwrapOnceFunction · 0.70
GetSafeDetailsFunction · 0.70

Tested by 1

TestFormatFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…