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

Function Newf

errutil_api.go:60–60  ·  view source on GitHub ↗

Newf creates an error with a formatted error message. A stack trace is retained. Note: the format string is assumed to not contain PII and is included in Sentry reports. Use errors.Newf("%s", ) for errors strings that may contain PII information. See the doc of `New()` for more detai

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

Source from the content-addressed store, hash-verified

58//
59// See the doc of `New()` for more details.
60func Newf(format string, args ...interface{}) error { return errutil.NewWithDepthf(1, format, args...) }
61
62// NewWithDepthf is like Newf() except the depth to capture the stack
63// trace is configurable.

Callers 1

ErrorfFunction · 0.92

Calls 1

NewWithDepthfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…