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

Function WithDomain

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

WithDomain wraps an error so that it appears to come from the given domain. Domain is shown: - via `errors.GetSafeDetails()`. - when formatting with `%+v`. - in Sentry reports.

(err error, domain Domain)

Source from the content-addressed store, hash-verified

41// - when formatting with `%+v`.
42// - in Sentry reports.
43func WithDomain(err error, domain Domain) error { return domains.WithDomain(err, domain) }
44
45// NotInDomain returns true if and only if the error's
46// domain is not one of the specified domains.

Callers

nothing calls this directly

Calls 1

WithDomainFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…