MCPcopy
hub / github.com/pocketbase/pocketbase / NewInternalServerError

Function NewInternalServerError

tools/router/error.go:103–109  ·  view source on GitHub ↗

NewInternalServerError creates and returns 500 ApiError.

(message string, rawErrData any)

Source from the content-addressed store, hash-verified

101
102// NewInternalServerError creates and returns 500 ApiError.
103func NewInternalServerError(message string, rawErrData any) *ApiError {
104 if message == "" {
105 message = "Something went wrong while processing your request."
106 }
107
108 return NewApiError(http.StatusInternalServerError, message, rawErrData)
109}
110
111func NewTooManyRequestsError(message string, rawErrData any) *ApiError {
112 if message == "" {

Callers 6

TestApiErrorIsFunction · 0.92
firstApiErrorFunction · 0.92
NewInternalServerErrorFunction · 0.92
event.goFile · 0.70
InternalServerErrorMethod · 0.70

Calls 1

NewApiErrorFunction · 0.70

Tested by 2

TestApiErrorIsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…