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

Function WrapWithDepthf

errutil_api.go:145–147  ·  view source on GitHub ↗

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

(depth int, err error, format string, args ...interface{})

Source from the content-addressed store, hash-verified

143// trace is configurable.
144// The the doc of `Wrapf()` for more details.
145func WrapWithDepthf(depth int, err error, format string, args ...interface{}) error {
146 return errutil.WrapWithDepthf(depth+1, err, format, args...)
147}
148
149// AssertionFailedf creates an internal error.
150//

Callers 1

WrapErrfFunction · 0.92

Calls 1

WrapWithDepthfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…