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

Function NewAssertionErrorWithWrappedErrf

errutil_api.go:171–173  ·  view source on GitHub ↗

NewAssertionErrorWithWrappedErrf wraps an error and turns it into an assertion error. 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()` fo

(origErr error, format string, args ...interface{})

Source from the content-addressed store, hash-verified

169// visible as cause any more. The original error message is preserved.
170// See the doc of `AssertionFailedf()` for more details.
171func NewAssertionErrorWithWrappedErrf(origErr error, format string, args ...interface{}) error {
172 return errutil.NewAssertionErrorWithWrappedErrDepthf(1, origErr, format, args...)
173}
174
175// HandleAsAssertionFailure hides an error and turns it into
176// an assertion failure. Both details from the original error and the

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…