Versions in this module Expand all Collapse all v0 v0.2.0 Oct 15, 2025 v0.1.0 Oct 14, 2025 Changes in this version + func As(err error, target interface{}) bool + func DefaultRecoveryFunc(p interface{}) error + func GRPCStatus(err error) *status.Status + func HTTPStatusCode(err error) int + func Is(err, target error) bool + func IsInvalidInput(err error) bool + func IsNotFound(err error) bool + func IsPermanent(err error) bool + func IsTemporary(err error) bool + func IsUnauthorized(err error) bool + func NewInvalidInput(field, msg string) error + func NewInvalidInputWithCause(field, msg string, cause error) error + func NewNotFound(resource, id string) error + func NewNotFoundWithCause(resource, id string, cause error) error + func NewPermanent(msg string, cause error) error + func NewTemporary(msg string, cause error) error + func NewUnauthorized(msg string) error + func NewUnauthorizedWithCause(msg string, cause error) error + func RecoveryMiddleware(recoveryFunc RecoveryFunc) func(http.Handler) http.Handler + func StreamServerInterceptor(recoveryFunc RecoveryFunc) grpc.StreamServerInterceptor + func ToGRPCError(err error) error + func UnaryServerInterceptor(recoveryFunc RecoveryFunc) grpc.UnaryServerInterceptor + func Wrap(err error, msg string) error + func Wrapf(err error, format string, args ...interface{}) error + func WriteHTTPError(w http.ResponseWriter, err error) + type InvalidInputError struct + func (e *InvalidInputError) Error() string + func (e *InvalidInputError) Field() string + func (e *InvalidInputError) Message() string + func (e *InvalidInputError) Unwrap() error + type NotFoundError struct + func (e *NotFoundError) Error() string + func (e *NotFoundError) ID() string + func (e *NotFoundError) Resource() string + func (e *NotFoundError) Unwrap() error + type PermanentError struct + func (e *PermanentError) Error() string + func (e *PermanentError) Unwrap() error + type RecoveryFunc func(interface{}) error + type TemporaryError struct + func (e *TemporaryError) Error() string + func (e *TemporaryError) Unwrap() error + type UnauthorizedError struct + func (e *UnauthorizedError) Error() string + func (e *UnauthorizedError) Unwrap() error