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

Function WrapWithDepth

errutil_api.go:120–122  ·  view source on GitHub ↗

WrapWithDepth is like Wrap except the depth to capture the stack trace is configurable. The the doc of `Wrap()` for more details.

(depth int, err error, msg string)

Source from the content-addressed store, hash-verified

118// trace is configurable.
119// The the doc of `Wrap()` for more details.
120func WrapWithDepth(depth int, err error, msg string) error {
121 return errutil.WrapWithDepth(depth+1, err, msg)
122}
123
124// Wrapf wraps an error with a formatted message prefix. A stack
125// trace is also retained. If the format is empty, no prefix is added,

Callers 1

WrapErrFunction · 0.92

Calls 1

WrapWithDepthFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…