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

Function NewWithDepth

errutil_api.go:49–49  ·  view source on GitHub ↗

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

(depth int, msg string)

Source from the content-addressed store, hash-verified

47// trace is configurable.
48// See the doc of `New()` for more details.
49func NewWithDepth(depth int, msg string) error { return errutil.NewWithDepth(depth+1, msg) }
50
51// Newf creates an error with a formatted error message.
52// A stack trace is retained.

Callers

nothing calls this directly

Calls 1

NewWithDepthFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…