Versions in this module Expand all Collapse all v1 v1.1.0 Nov 7, 2026 v1.0.0 Nov 7, 2026 Changes in this version + func CodeOf(err error) string + func Is(err error, kind Kind) bool + type Detail struct + Field string + Message string + Rule string + type Error struct + Cause error + Code string + Details []Detail + Kind Kind + Message string + Meta map[string]any + func Conflict(format string, args ...any) *Error + func Exhausted(format string, args ...any) *Error + func Forbidden(format string, args ...any) *Error + func From(err error) *Error + func Internal(format string, args ...any) *Error + func Invalid(format string, args ...any) *Error + func NotFound(format string, args ...any) *Error + func NotSupported(format string, args ...any) *Error + func PaymentRequired(format string, args ...any) *Error + func Timeout(format string, args ...any) *Error + func Unauthorized(format string, args ...any) *Error + func Unavailable(format string, args ...any) *Error + func Wrap(kind Kind, message string, err error) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + func (e *Error) WithCause(err error) *Error + func (e *Error) WithCode(code string) *Error + func (e *Error) WithDetails(d ...Detail) *Error + func (e *Error) WithMeta(key string, value any) *Error + type Kind string + const KindConflict + const KindExhausted + const KindForbidden + const KindInternal + const KindInvalid + const KindNotFound + const KindNotSupported + const KindPayment + const KindTimeout + const KindUnauthorized + const KindUnavailable + func KindOf(err error) Kind