MCPcopy
hub / github.com/pocketbase/pocketbase / NewApiError

Function NewApiError

apis/api_error_aliases.go:15–17  ·  view source on GitHub ↗

NewApiError is an alias for [router.NewApiError].

(status int, message string, errData any)

Source from the content-addressed store, hash-verified

13
14// NewApiError is an alias for [router.NewApiError].
15func 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].
20func NewBadRequestError(message string, errData any) *router.ApiError {

Callers

nothing calls this directly

Calls 1

NewApiErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…