property Deno.ServeOptions.onError
The handler to invoke when route handlers throw an error.
Type Jump to heading
(error: unknown) => Response | Promise<Response>
The handler to invoke when route handlers throw an error.
(error: unknown) => Response | Promise<Response>