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

Function NotInDomain

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

NotInDomain returns true if and only if the error's domain is not one of the specified domains.

(err error, doms ...Domain)

Source from the content-addressed store, hash-verified

45// NotInDomain returns true if and only if the error's
46// domain is not one of the specified domains.
47func NotInDomain(err error, doms ...Domain) bool { return domains.NotInDomain(err, doms...) }
48
49// EnsureNotInDomain checks whether the error is in the given domain(s).
50// If it is, the given constructor if provided is called to construct

Callers

nothing calls this directly

Calls 1

NotInDomainFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…