package
1.11.3
Repository: https://github.com/cockroachdb/errors.git
Documentation: pkg.go.dev

# Functions

EnsureNotInDomain checks whether the error is in the given domain(s).
GetDomain extracts the domain of the given error, or NoDomain if the error's cause does not have a domain annotation.
Handled creates a handled error in the implicit domain (see PackageDomain() below) of its caller.
HandledInDomain creates an error in the given domain and retains the details of the given original error as context for debugging.
HandledInDomainWithMessage is like HandledWithMessage but with a domain.
NamedDomain returns an error domain identified by the given string.
New creates an error in the implicit domain (see PackageDomain() below) of its caller.
NotInDomain returns true if and only if the error's domain is not one of the specified domains.
PackageDomain returns an error domain that represents the package of its caller.
PackageDomainAtDepth returns an error domain that describes the package at the given call depth.
WithDomain wraps an error so that it appears to come from the given domain.

# Constants

NoDomain is the domain of errors that don't originate from a barrier.

# Type aliases

Domain is the type of a domain annotation.