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

Function HandleAsAssertionFailure

errutil_api.go:180–182  ·  view source on GitHub ↗

HandleAsAssertionFailure hides an error and turns it into an assertion failure. Both details from the original error and the context of the caller are preserved. The original error is not visible as cause any more. The original error message is preserved. See the doc of `AssertionFailedf()` for more

(origErr error)

Source from the content-addressed store, hash-verified

178// visible as cause any more. The original error message is preserved.
179// See the doc of `AssertionFailedf()` for more details.
180func HandleAsAssertionFailure(origErr error) error {
181 return errutil.HandleAsAssertionFailureDepth(1, origErr)
182}
183
184// HandleAsAssertionFailureDepth is like HandleAsAssertionFailure but
185// the depth at which the call stack is captured can be specified.

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…