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

Struct withDomain

domains/with_domain.go:28–34  ·  view source on GitHub ↗

withDomain is a wrapper type that adds a domain annotation to an error.

Source from the content-addressed store, hash-verified

26// withDomain is a wrapper type that adds a domain annotation to an
27// error.
28type withDomain struct {
29 // Mandatory: error cause
30 cause error
31 // Mandatory: domain. This also must be free of PII
32 // as it will be reported in "safe details".
33 domain Domain
34}
35
36var _ error = (*withDomain)(nil)
37var _ errbase.SafeDetailer = (*withDomain)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected