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

Function WithAssertionFailure

assert_api.go:26–26  ·  view source on GitHub ↗

WithAssertionFailure decorates the error with an assertion failure marker. This is not intended to be used directly (see AssertionFailed() for further decoration). Detail is shown: - when formatting with `%+v`. - in Sentry reports.

(err error)

Source from the content-addressed store, hash-verified

24// - when formatting with `%+v`.
25// - in Sentry reports.
26func WithAssertionFailure(err error) error { return assert.WithAssertionFailure(err) }
27
28// HasAssertionFailure returns true if the error or any of its causes
29// is an assertion failure annotation.

Callers

nothing calls this directly

Calls 1

WithAssertionFailureFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…