Versions in this module Expand all Collapse all v0 v0.33.29 Nov 27, 2026 Changes in this version + const HTTPStatusErrorMetadata + const MessageKey + var ErrUnknown = NewAsertoError("E00000", codes.Internal, http.StatusInternalServerError, ...) + func CustomErrorHandler(ctx context.Context, gtw *runtime.ServeMux, runtimeMarshaler runtime.Marshaler, ...) + func Logger(err error) *zerolog.Logger + type AsertoError struct + Code string + GRPCCode codes.Code + HTTPCode int + Message string + func CodeToAsertoError(code string) *AsertoError + func FromGRPCStatus(grpcStatus status.Status) *AsertoError + func NewAsertoError(code string, grpcCode codes.Code, httpCode int, msg string) *AsertoError + func UnwrapAsertoError(err error) *AsertoError + func (e *AsertoError) Cause() error + func (e *AsertoError) Copy() *AsertoError + func (e *AsertoError) Ctx(ctx context.Context) error + func (e *AsertoError) Data() map[string]string + func (e *AsertoError) Err(err error) *AsertoError + func (e *AsertoError) Error() string + func (e *AsertoError) ErrorInfo(reason string) *errdetails.ErrorInfo + func (e *AsertoError) Fields() map[string]any + func (e *AsertoError) GRPCStatus() *status.Status + func (e *AsertoError) MarshalZerologObject(event *zerolog.Event) + func (e *AsertoError) Msg(message string) *AsertoError + func (e *AsertoError) Msgf(message string, args ...any) *AsertoError + func (e *AsertoError) Str(key, value string) *AsertoError + func (e *AsertoError) Unwrap() error + type ContextError struct + Ctx context.Context + Err error + func WithContext(err error, ctx context.Context) *ContextError + func WrapContext(err error, ctx context.Context, message string) *ContextError + func WrapfContext(err error, ctx context.Context, format string, args ...any) *ContextError + func (ce *ContextError) Cause() error + func (ce *ContextError) Error() string + func (ce *ContextError) Unwrap() error