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

Function Wrapf

errutil_api.go:138–140  ·  view source on GitHub ↗

Wrapf wraps an error with a formatted message prefix. A stack trace is also retained. If the format is empty, no prefix is added, but the extra arguments are still processed for reportable strings. Note: the format string is assumed to not contain PII and is included in Sentry reports. Use errors.W

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

Source from the content-addressed store, hash-verified

136// - stack trace, format, and redacted details via `errors.GetSafeDetails()`.
137// - stack trace, format, and redacted details in Sentry reports.
138func Wrapf(err error, format string, args ...interface{}) error {
139 return errutil.WrapWithDepthf(1, err, format, args...)
140}
141
142// WrapWithDepthf is like Wrapf except the depth to capture the stack
143// trace is configurable.

Callers

nothing calls this directly

Calls 1

WrapWithDepthfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…