Versions in this module Expand all Collapse all v0 v0.3.0 Jan 21, 2025 Changes in this version + type ApiError interface + GetStatus func() int + func New(status int, msg string) ApiError + func PkgError(status int, err error) ApiError + type CommonErrorHandler struct + func (api *CommonErrorHandler) GinErrorWithStatusHandler(c *gin.Context, status int, err error) + func (api *CommonErrorHandler) SetErrorHandler(errHandler GinErrorHandler) + type ErrorHandler interface + SetErrorHandler func(GinErrorHandler) + type GinErrorHandler func(c *gin.Context, err error) + type GinErrorWithStatusHandler func(c *gin.Context, status int, err error) + type GinServiceErrorHandler func(c *gin.Context, service string, err error)