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

Function HandledWithMessagef

barriers/barriers.go:62–67  ·  view source on GitHub ↗

HandledWithMessagef is like HandledWithMessagef except the message is formatted.

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

Source from the content-addressed store, hash-verified

60// HandledWithMessagef is like HandledWithMessagef except the message
61// is formatted.
62func HandledWithMessagef(err error, format string, args ...interface{}) error {
63 if err == nil {
64 return nil
65 }
66 return &barrierErr{maskedErr: err, smsg: redact.Sprintf(format, args...)}
67}
68
69// barrierErr is a leaf error type. It encapsulates a chain of
70// original causes, but these causes are hidden so that they inhibit

Callers 1

TestHandledWithMessagefFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestHandledWithMessagefFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…