MCPcopy
hub / github.com/pocketbase/pocketbase / Error

Method Error

tools/router/event.go:294–296  ·  view source on GitHub ↗

ApiError helpers -------------------------------------------------------------------

(status int, message string, errData any)

Source from the content-addressed store, hash-verified

292// -------------------------------------------------------------------
293
294func (e *Event) Error(status int, message string, errData any) *ApiError {
295 return NewApiError(status, message, errData)
296}
297
298func (e *Event) BadRequestError(message string, errData any) *ApiError {
299 return NewBadRequestError(message, errData)

Callers

nothing calls this directly

Calls 1

NewApiErrorFunction · 0.70

Tested by

no test coverage detected