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

Function HandledInDomain

domains/domains.go:84–86  ·  view source on GitHub ↗

Newf/Errorf with format and args can be implemented similarly. 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 _messag

(err error, domain Domain)

Source from the content-addressed store, hash-verified

82//
83// See the documentation of `WithDomain()` and `errors.Handled()` for details.
84func HandledInDomain(err error, domain Domain) error {
85 return WithDomain(barriers.Handled(err), domain)
86}
87
88// HandledInDomainWithMessage is like HandledWithMessage but with a domain.
89func HandledInDomainWithMessage(err error, domain Domain, msg string) error {

Callers 3

HandledInDomainFunction · 0.92
TestHandledInDomainFunction · 0.92
HandledFunction · 0.70

Calls 2

HandledFunction · 0.92
WithDomainFunction · 0.70

Tested by 1

TestHandledInDomainFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…