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

Function notInDomainInternal

domains/domains.go:109–116  ·  view source on GitHub ↗
(d Domain, domains ...Domain)

Source from the content-addressed store, hash-verified

107}
108
109func notInDomainInternal(d Domain, domains ...Domain) bool {
110 for _, given := range domains {
111 if d == given {
112 return false
113 }
114 }
115 return true
116}
117
118// EnsureNotInDomain checks whether the error is in the given domain(s).
119// If it is, the given constructor if provided is called to construct

Callers 2

NotInDomainFunction · 0.85
EnsureNotInDomainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…