Skip to main content

onError

property Deno.ServeOptions.onError

The handler to invoke when route handlers throw an error.

(error: unknown) => Response | Promise<Response>
Back to top