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

Function HandledWithSafeMessage

barriers/barriers.go:56–58  ·  view source on GitHub ↗

HandledWithSafeMessage is like Handled except the message is overridden. This can be used e.g. to hide message details or to prevent downstream code to make assertions on the message's contents.

(err error, msg redact.RedactableString)

Source from the content-addressed store, hash-verified

54// This can be used e.g. to hide message details or to prevent
55// downstream code to make assertions on the message's contents.
56func HandledWithSafeMessage(err error, msg redact.RedactableString) error {
57 return &barrierErr{maskedErr: err, smsg: msg}
58}
59
60// HandledWithMessagef is like HandledWithMessagef except the message
61// is formatted.

Callers 2

HandledFunction · 0.85
HandledWithMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…