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

Function Wrap

errutil/utilities.go:104–106  ·  view source on GitHub ↗

Wrap wraps an error with a message prefix. A stack trace is retained. Note: the prefix string is assumed to not contain PII and is included in Sentry reports. Use errors.Wrapf(err, "%s", ) for errors strings that may contain PII information. Detail output: - original error message +

(err error, msg string)

Source from the content-addressed store, hash-verified

102// - stack trace and message via `errors.GetSafeDetails()`.
103// - stack trace and message in Sentry reports.
104func Wrap(err error, msg string) error {
105 return WrapWithDepth(1, err, msg)
106}
107
108// WrapWithDepth is like Wrap except the depth to capture the stack
109// trace is configurable.

Callers

nothing calls this directly

Calls 1

WrapWithDepthFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…