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

Function PackageDomainAtDepth

domains/domains.go:148–151  ·  view source on GitHub ↗

PackageDomainAtDepth returns an error domain that describes the package at the given call depth.

(depth int)

Source from the content-addressed store, hash-verified

146// PackageDomainAtDepth returns an error domain that describes the
147// package at the given call depth.
148func PackageDomainAtDepth(depth int) Domain {
149 _, f, _, _ := runtime.Caller(1 + depth)
150 return Domain("error domain: pkg " + filepath.Dir(f))
151}
152
153// NamedDomain returns an error domain identified by the given string.
154func NamedDomain(domainName string) Domain {

Callers 5

PackageDomainFunction · 0.92
PackageDomainAtDepthFunction · 0.92
NewFunction · 0.70
HandledFunction · 0.70
PackageDomainFunction · 0.70

Calls 1

DomainTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…