Versions in this module Expand all Collapse all v1 v1.0.23 Feb 8, 2026 v1.0.22 Feb 8, 2026 v1.0.19 Feb 5, 2026 v1.0.18 Feb 4, 2026 v1.0.17 Feb 4, 2026 v1.0.16 Feb 4, 2026 Changes in this version + var ErrBadRequest = &AppError + var ErrConflict = &AppError + var ErrForbidden = &AppError + var ErrInternal = &AppError + var ErrNotFound = &AppError + var ErrServiceUnavailable = &AppError + var ErrTimeout = &AppError + var ErrTooManyRequests = &AppError + var ErrUnauthorized = &AppError + var ErrValidationFailed = &AppError + func HandleApiError(c echo.Context, err error, traceID string) error + func InvalidAccessToken() error + func NewGrpcError(message string, httpCode int) error + func ToGrpcError(err error) error + type ApiHandler interface + Handle func(method string, handler func(echo.Context) error) echo.HandlerFunc + HandleApiErrorWithTracing func(c echo.Context, err error, span trace.Span, method string) error + func NewApiHandler(observability observability.TraceLoggerObservability, ...) ApiHandler + type AppError struct + Code int + Internal error + Message string + Retryable bool + Validations []ValidationError + func NewBadRequestError(message string) *AppError + func NewConflictError(message string) *AppError + func NewErrorResponse(message string, code int) *AppError + func NewInternalError(err error) *AppError + func NewNotFoundError(resource string) *AppError + func NewServiceUnavailableError(service string) *AppError + func NewValidationError(validations []ValidationError) *AppError + func (e *AppError) AsRetryable() *AppError + func (e *AppError) Error() string + func (e *AppError) Unwrap() error + func (e *AppError) WithInternal(err error) *AppError + func (e *AppError) WithMessage(message string) *AppError + func (e *AppError) WithValidations(validations []ValidationError) *AppError + type ErrorResponse struct + Code int + Message string + Retryable bool + Status string + TraceID string + Validations []ValidationError + type ValidationError struct + Field string + Message string v1.0.15 Jul 18, 2025 v1.0.14 Aug 25, 2025 v1.0.13 Jul 18, 2025 v1.0.12 Jul 13, 2025 v1.0.11 Jul 13, 2025 v1.0.10 Jul 11, 2025 v1.0.9 Jul 11, 2025 v1.0.8 Jul 10, 2025 v1.0.7 Jul 2, 2025 v1.0.6 Jul 2, 2025 v1.0.5 Jul 2, 2025 Changes in this version + func GrpcErrorToJson(err *pb.ErrorResponse) string v1.0.4 Jun 24, 2025 v1.0.3 Jun 24, 2025 v1.0.2 May 18, 2025