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

Function NewWithDepthf

errutil_api.go:65–67  ·  view source on GitHub ↗

NewWithDepthf is like Newf() except the depth to capture the stack trace is configurable. See the doc of `New()` for more details.

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

Source from the content-addressed store, hash-verified

63// trace is configurable.
64// See the doc of `New()` for more details.
65func NewWithDepthf(depth int, format string, args ...interface{}) error {
66 return errutil.NewWithDepthf(depth+1, format, args...)
67}
68
69// Errorf aliases Newf().
70func Errorf(format string, args ...interface{}) error {

Callers

nothing calls this directly

Calls 1

NewWithDepthfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…