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

Function WithStackDepth

withstack_api.go:38–38  ·  view source on GitHub ↗

WithStackDepth annotates err with a stack trace starting from the given call depth. The value zero identifies the caller of WithStackDepth itself. See the documentation of WithStack() for more details.

(err error, depth int)

Source from the content-addressed store, hash-verified

36// of WithStackDepth itself.
37// See the documentation of WithStack() for more details.
38func WithStackDepth(err error, depth int) error { return withstack.WithStackDepth(err, depth+1) }
39
40// ReportableStackTrace aliases the type of the same name in the sentry
41// package. This is used by SendReport().

Callers

nothing calls this directly

Calls 1

WithStackDepthFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…