跳转到内容
简体中文

ExceptionHandler

此内容尚不支持你的语言。

ExceptionHandler = (err, request) => Promise<HttpResponse | null | undefined> | HttpResponse | null | undefined

Defined in: src/http/Route.ts:145

Handler for handleErrors. Receives the thrown value (an HttpError or anything else) plus the request; return an HttpResponse to handle it, or null/undefined to decline — declining re-throws so an outer handleErrors (or, failing that, the backend’s default mapping) takes over.

unknown

HttpRequest

Promise<HttpResponse | null | undefined> | HttpResponse | null | undefined