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

Function GetDomain

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

GetDomain extracts the domain of the given error, or NoDomain if the error's cause does not have a domain annotation.

(err error)

Source from the content-addressed store, hash-verified

76// GetDomain extracts the domain of the given error, or NoDomain if
77// the error's cause does not have a domain annotation.
78func GetDomain(err error) Domain { return domains.GetDomain(err) }

Callers

nothing calls this directly

Calls 1

GetDomainFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…