Versions in this module Expand all Collapse all v0 v0.0.2 Nov 16, 2026 v0.0.1 Nov 10, 2026 Changes in this version + var CodeUnknown = Code + var TypeCanceled = Type + var TypeConflict = Type + var TypeFatal = Type + var TypeForbidden = Type + var TypeInternal = Type + var TypeInvalidInput = Type + var TypeMethodNotAllowed = Type + var TypeNotFound = Type + var TypeTimeout = Type + var TypeTooManyRequests = Type + var TypeUnauthenticated = Type + var TypeUnavailable = Type + var TypeUnknown = Type + var TypeUnsupported = Type + func As(err error, target any) bool + func AsType[E error](err error) (E, bool) + func AsURLValues(err error) url.Values + func Asc(err error, c Code) bool + func Ast(err error, t Type) bool + func Attr(err error) slog.Attr + func HTTPStatus(err error) int + func Is(err, target error) bool + func IsConflict(err error) bool + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsRetryable(err error) bool + func IsUnauthenticated(err error) bool + func IsUnavailable(err error) bool + func Join(errs ...error) error + func MessageOf(err error) string + func New(t Type, c Code, message string) *base + func Newf(t Type, c Code, format string, args ...any) *base + func RetryAfterOf(err error) time.Duration + func WithAdditionalf(err error, format string, args ...any) *base + func Wrap(cause error, t Type, c Code, message string) *base + func Wrapf(cause error, t Type, c Code, format string, args ...any) *base + type Code struct + func CodeOf(err error) Code + func MustNewCode(s string) Code + func NewCode(s string) (Code, error) + func (c *Code) UnmarshalText(text []byte) error + func (c Code) MarshalText() ([]byte, error) + func (c Code) String() string + type Exception struct + Code string + Errors []ExceptionAdditional + Message string + Retry *ExceptionRetry + Suggestions []string + Type string + URL string + func AsException(err error) *Exception + type ExceptionAdditional struct + Message string + Suggestions []string + type ExceptionRetry struct + Delay time.Duration + type Type struct + func MustNewType(name string, status int, retryable bool) Type + func NewType(name string, status int, retryable bool) (Type, error) + func TypeFromHTTPStatus(status int) Type + func TypeOf(err error) Type + func (t Type) MarshalText() ([]byte, error) + func (t Type) String() string