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

Function HandleAsAssertionFailureDepth

errutil_api.go:186–188  ·  view source on GitHub ↗

HandleAsAssertionFailureDepth is like HandleAsAssertionFailure but the depth at which the call stack is captured can be specified.

(depth int, origErr error)

Source from the content-addressed store, hash-verified

184// HandleAsAssertionFailureDepth is like HandleAsAssertionFailure but
185// the depth at which the call stack is captured can be specified.
186func HandleAsAssertionFailureDepth(depth int, origErr error) error {
187 return errutil.HandleAsAssertionFailureDepth(1+depth, origErr)
188}
189
190// As finds the first error in err's chain that matches the type to which target
191// points, and if so, sets the target to its value and returns true. An error

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…