NewApiError is an alias for [router.NewApiError].
(status int, message string, errData any)
| 13 | |
| 14 | // NewApiError is an alias for [router.NewApiError]. |
| 15 | func NewApiError(status int, message string, errData any) *router.ApiError { |
| 16 | return router.NewApiError(status, message, errData) |
| 17 | } |
| 18 | |
| 19 | // NewBadRequestError is an alias for [router.NewBadRequestError]. |
| 20 | func NewBadRequestError(message string, errData any) *router.ApiError { |
nothing calls this directly
no test coverage detected
searching dependent graphs…