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

Function HandledInDomain

domains_api.go:69–69  ·  view source on GitHub ↗

HandledInDomain creates an error in the given domain and retains the details of the given original error as context for debugging. The original error is hidden and does not become a "cause" for the new error. The original's error _message_ is preserved. See the documentation of `WithDomain()` and `

(err error, domain Domain)

Source from the content-addressed store, hash-verified

67//
68// See the documentation of `WithDomain()` and `errors.Handled()` for details.
69func HandledInDomain(err error, domain Domain) error { return domains.HandledInDomain(err, domain) }
70
71// HandledInDomainWithMessage is like HandledWithMessage but with a domain.
72func HandledInDomainWithMessage(err error, domain Domain, msg string) error {

Callers

nothing calls this directly

Calls 1

HandledInDomainFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…