Versions in this module Expand all Collapse all v1 v1.11.3 Apr 22, 2024 Changes in this version + const UnimplementedErrorHint + func As(err error, target interface{}) bool + func AssertionFailedWithDepthf(depth int, format string, args ...interface{}) error + func AssertionFailedf(format string, args ...interface{}) error + func BuildSentryReport(err error) (*sentry.Event, map[string]interface{}) + func Cause(err error) error + func CombineErrors(err, otherErr error) error + func DecodeError(ctx context.Context, enc EncodedError) error + func EnsureNotInDomain(err error, constructor DomainOverrideFn, forbiddenDomains ...Domain) error + func Errorf(format string, args ...interface{}) error + func FlattenDetails(err error) string + func FlattenHints(err error) string + func FormatError(err error, s fmt.State, verb rune) + func Formattable(err error) fmt.Formatter + func GetAllDetails(err error) []string + func GetAllHints(err error) []string + func GetContextTags(err error) []*logtags.Buffer + func GetOneLineSource(err error) (file string, line int, fn string, ok bool) + func GetTelemetryKeys(err error) []string + func HandleAsAssertionFailure(origErr error) error + func HandleAsAssertionFailureDepth(depth int, origErr error) error + func Handled(err error) error + func HandledInDomain(err error, domain Domain) error + func HandledInDomainWithMessage(err error, domain Domain, msg string) error + func HandledWithMessage(err error, msg string) error + func HasAssertionFailure(err error) bool + func HasInterface(err error, referenceInterface interface{}) bool + func HasIssueLink(err error) bool + func HasType(err, referenceType error) bool + func HasUnimplementedError(err error) bool + func If(err error, pred func(err error) (interface{}, bool)) (interface{}, bool) + func Is(err, reference error) bool + func IsAny(err error, references ...error) bool + func IsAssertionFailure(err error) bool + func IsIssueLink(err error) bool + func IsUnimplementedError(err error) bool + func Join(errs ...error) error + func JoinWithDepth(depth int, errs ...error) error + func Mark(err error, reference error) error + func New(msg string) error + func NewAssertionErrorWithWrappedErrf(origErr error, format string, args ...interface{}) error + func NewWithDepth(depth int, msg string) error + func NewWithDepthf(depth int, format string, args ...interface{}) error + func Newf(format string, args ...interface{}) error + func NotInDomain(err error, doms ...Domain) bool + func Opaque(err error) error + func Redact(r interface{}) string + func RegisterLeafDecoder(typeName TypeKey, decoder LeafDecoder) + func RegisterLeafEncoder(typeName TypeKey, encoder LeafEncoder) + func RegisterMultiCauseDecoder(theType TypeKey, decoder MultiCauseDecoder) + func RegisterMultiCauseEncoder(typeName TypeKey, encoder MultiCauseEncoder) + func RegisterTypeMigration(previousPkgPath, previousTypeName string, newType error) + func RegisterWrapperDecoder(typeName TypeKey, decoder WrapperDecoder) + func RegisterWrapperEncoder(typeName TypeKey, encoder WrapperEncoder) + func RegisterWrapperEncoderWithMessageType(typeName TypeKey, encoder WrapperEncoderWithMessageType) + func ReportError(err error) string + func Safe(v interface{}) redact.SafeValue + func SetWarningFn(fn func(context.Context, string, ...interface{})) + func UnimplementedError(issueLink IssueLink, msg string) error + func UnimplementedErrorf(issueLink IssueLink, format string, args ...interface{}) error + func Unwrap(err error) error + func UnwrapAll(err error) error + func UnwrapOnce(err error) error + func WithAssertionFailure(err error) error + func WithContextTags(err error, ctx context.Context) error + func WithDetail(err error, msg string) error + func WithDetailf(err error, format string, args ...interface{}) error + func WithDomain(err error, domain Domain) error + func WithHint(err error, msg string) error + func WithHintf(err error, format string, args ...interface{}) error + func WithIssueLink(err error, issue IssueLink) error + func WithMessage(err error, msg string) error + func WithMessagef(err error, format string, args ...interface{}) error + func WithSafeDetails(err error, format string, args ...interface{}) error + func WithSecondaryError(err error, additionalErr error) error + func WithStack(err error) error + func WithStackDepth(err error, depth int) error + func WithTelemetry(err error, keys ...string) error + func Wrap(err error, msg string) error + func WrapWithDepth(depth int, err error, msg string) error + func WrapWithDepthf(depth int, err error, format string, args ...interface{}) error + func Wrapf(err error, format string, args ...interface{}) error + type Domain = domains.Domain + const NoDomain + func GetDomain(err error) Domain + func NamedDomain(domainName string) Domain + func PackageDomain() Domain + func PackageDomainAtDepth(depth int) Domain + type DomainOverrideFn = func(originalDomain Domain, err error) error + type EncodedError = errbase.EncodedError + func EncodeError(ctx context.Context, err error) EncodedError + type ErrorDetailer = hintdetail.ErrorDetailer + type ErrorHinter = hintdetail.ErrorHinter + type Formatter = errbase.Formatter + type IssueLink = issuelink.IssueLink + func GetAllIssueLinks(err error) (issues []IssueLink) + type LeafDecoder = errbase.LeafDecoder + type LeafEncoder = errbase.LeafEncoder + type MultiCauseDecoder = errbase.MultiCauseDecoder + type MultiCauseEncoder = errbase.MultiCauseEncoder + type Printer = errbase.Printer + type ReportableStackTrace = withstack.ReportableStackTrace + func GetReportableStackTrace(err error) *ReportableStackTrace + type SafeDetailPayload = errbase.SafeDetailPayload + func GetAllSafeDetails(err error) []SafeDetailPayload + func GetSafeDetails(err error) (payload SafeDetailPayload) + type SafeDetailer = errbase.SafeDetailer + type SafeFormatter = errbase.SafeFormatter + type SafeMessager = redact.SafeMessager + type TypeKey = errbase.TypeKey + func GetTypeKey(err error) TypeKey + type Wrapper interface + Unwrap func() error + type WrapperDecoder = errbase.WrapperDecoder + type WrapperEncoder = errbase.WrapperEncoder + type WrapperEncoderWithMessageType = errbase.WrapperEncoderWithMessageType