Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2024 Changes in this version + func As(kind Kind, err error) error + func AsConflict(err error) error + func AsForbidden(err error) error + func AsNotFound(err error) error + func AsPreconditionFailed(err error) error + func AsTimeout(err error) error + func AsTooManyRequests(err error) error + func AsUnauthorized(err error) error + func AsUnknown(err error) error + func AsValidation(err error) error + func Conflict(msg string, a ...any) error + func Forbidden(msg string, a ...any) error + func IsConflict(err error) bool + func IsFinal(err error) bool + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsPreconditionFailed(err error) bool + func IsTimeout(err error) bool + func IsTooManyRequests(err error) bool + func IsUnauthorized(err error) bool + func IsUnknown(err error) bool + func IsUser(err error) bool + func IsValidation(err error) bool + func New(kind Kind, msg string, a ...any) error + func NotFound(msg string, a ...any) error + func PreconditionFailed(msg string, a ...any) error + func Timeout(msg string, a ...any) error + func TooManyRequests(msg string, a ...any) error + func Unauthorized(msg string, a ...any) error + func Unknown(msg string, a ...any) error + func Validation(msg string, a ...any) error + type Kind int + const ConflictError + const ForbiddenError + const NotFoundError + const OK + const PreconditionFailedError + const TimeoutError + const TooManyRequestsError + const UnauthorizedError + const UnknownError + const ValidationError + func KindOf(err error) Kind + func KindValues() []Kind + func (i Kind) String() string