Versions in this module Expand all Collapse all v1 v1.0.1 Nov 26, 2025 v1.0.0 Nov 26, 2025 Changes in this version + var DefaultUserFriendlyError = "something went wrong" + func As(err error, target any) bool + func In(err error, target ...any) bool + func Is(err error, target any) bool + func IsUserFriendly(err error) bool + func Join(errs ...error) error + func Raw(err error) error + type Error interface + Annotate func(message string, args ...interface{}) Error + Details func() map[string]string + Labels func() LabelList + Unwrap func() error + WithDetails func(map[string]string) Error + WithLabels func(...Label) Error + Wrap func(error) Error + func From(err error) Error + func New(kind Kind, message string, args ...interface{}) Error + func NewAlreadyExistsError(message string, args ...interface{}) Error + func NewAuthenticationError(message string, args ...interface{}) Error + func NewAuthorizationError(message string, args ...interface{}) Error + func NewBadRequestError(message string, args ...interface{}) Error + func NewInconsistentError(message string, args ...interface{}) Error + func NewInfrastructureError(message string, args ...interface{}) Error + func NewLimitExceededError(message string, args ...interface{}) Error + func NewNotFoundError(message string, args ...interface{}) Error + func NewPersistenceError(message string, args ...interface{}) Error + func NewThirdPartiesError(message string, args ...interface{}) Error + func NewTimeoutError(message string, args ...interface{}) Error + func NewValidationError(message string, args ...interface{}) Error + type Factory interface + New func(args ...interface{}) Error + WithLabels func(...Label) Factory + func NewAlreadyExistsFactory(template string) Factory + func NewAuthenticationFactory(template string) Factory + func NewAuthorizationFactory(template string) Factory + func NewBadRequestFactory(template string) Factory + func NewFactory(kind Kind, template string) Factory + func NewInconsistentFactory(template string) Factory + func NewInfrastructureFactory(template string) Factory + func NewLimitExceededFactory(template string) Factory + func NewNotFoundFactory(template string) Factory + func NewPersistenceFactory(template string) Factory + func NewThirdPartiesFactory(template string) Factory + func NewTimeoutFactory(template string) Factory + func NewValidationFactory(template string) Factory + type Kind uint + const ErrKindAlreadyExists + const ErrKindAuthentication + const ErrKindAuthorization + const ErrKindBadRequest + const ErrKindGeneral + const ErrKindInconsistent + const ErrKindInfrastructure + const ErrKindLimitExceeded + const ErrKindNotFound + const ErrKindPersistence + const ErrKindThirdParties + const ErrKindTimeout + const ErrKindValidation + func KindOf(err error) Kind + func ParseKind(code string) Kind + type Label string + const LabelUserFriendly + type LabelList []Label + func Labels(err error) LabelList + func (self LabelList) Add(labels ...Label) LabelList + func (self LabelList) Has(label Label) bool + type Stacker interface + Location func() string + StackTrace func() jsontext.Value