Versions in this module Expand all Collapse all v0 v0.2.4 Sep 8, 2023 v0.2.3 Sep 8, 2023 Changes in this version + func DbErrorToRequestError(req interface{}, err error, dbType string) (error, bool) + type RequestError struct + Code int + Message string + ReqBody string + func NewBadRequestErrorf(req interface{}, format string, v ...any) RequestError + func NewDataTooLongErrorf(req interface{}, format string, v ...any) RequestError + func NewNotFoundErrorf(req interface{}, format string, v ...any) RequestError + func NewPkConflictErrorf(req interface{}, format string, v ...any) RequestError + func NewRequestErrorf(code int, req interface{}, format string, v ...any) RequestError + func (e RequestError) Error() string + type ServiceError struct + Code int + Err error + Message string + ReqBody string + func WrapServiceErrorf(err error, req interface{}, format string, v ...any) ServiceError + func (e ServiceError) Error() string