Versions in this module Expand all Collapse all v0 v0.0.2 Sep 14, 2025 Changes in this version type Error + func CastToErrorSafe(err error) (*Error, bool) v0.0.1 Sep 13, 2025 Changes in this version + func As(err error, target interface{}) bool + func GRPCErrorWithTrace(ctx context.Context, err *Error) (context.Context, error) + func HTTPCodeToGRPCCode(httpCode Code) codes.Code + func Is(err, target error) bool + func ToGRPCError(err *Error) error + type Code int + const ErrBadGateway + const ErrBadRequest + const ErrConflict + const ErrForbidden + const ErrGatewayTimeout + const ErrInternalServerError + const ErrNotFound + const ErrServiceUnavailable + const ErrTooManyRequests + const ErrUnauthorized + const ErrUnprocessableEntity + func GRPCCodeToHTTPCode(grpcCode codes.Code) Code + func (c Code) Equal(code Code) bool + func (c Code) String() string + type Error struct + func CastToError(err error) *Error + func Clean(err error) *Error + func FromGRPCError(err error) *Error + func New(code Code, message string, traceId ...string) *Error + func Unwrap(err error) *Error + func Wrap(err error, code Code, message string, traceId ...string) *Error + func (e *Error) Code() Code + func (e *Error) Err() error + func (e *Error) Error() string + func (e *Error) Message() string + func (e *Error) Status() int + func (e *Error) Unwrap() error