MCPcopy Create free account
hub / github.com/cockroachdb/errors / Handled

Function Handled

barriers_api.go:29–29  ·  view source on GitHub ↗

Handled swallows the provided error and hides it from the Cause()/Unwrap() interface, and thus the Is() facility that identifies causes. However, it retains it for the purpose of printing the error out (e.g. for troubleshooting). The error message is preserved in full. Detail is shown: - via `error

(err error)

Source from the content-addressed store, hash-verified

27// - when formatting with `%+v`.
28// - in Sentry reports.
29func Handled(err error) error { return barriers.Handled(err) }
30
31// HandledWithMessage is like Handled except the message is overridden.
32// This can be used e.g. to hide message details or to prevent

Callers

nothing calls this directly

Calls 1

HandledFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…