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

Function Join

errutil_api.go:210–212  ·  view source on GitHub ↗

Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if errs contains no non-nil values. The error formats as the concatenation of the strings obtained by calling the Error method of each element of errs, with a newline between each string. A stack

(errs ...error)

Source from the content-addressed store, hash-verified

208// by calling the Error method of each element of errs, with a newline
209// between each string. A stack trace is also retained.
210func Join(errs ...error) error {
211 return errutil.JoinWithDepth(1, errs...)
212}
213
214// JoinWithDepth is like Join but the depth at which the call stack is
215// captured can be specified.

Callers 1

TestJoinFunction · 0.92

Calls 1

JoinWithDepthFunction · 0.92

Tested by 1

TestJoinFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…