import { oak } from "https://deno.land/x/hex@0.6.3/src/fw/service/deps.ts";
const { Application } = oak;
Add an event listener for an "error"
event which occurs when an
un-caught error occurs when processing the middleware or during processing
of the response.
Parameters
listener: ApplicationErrorEventListenerOrEventListenerObject<S, AS> | null
optional
options: boolean | AddEventListenerOptionsAdd an event listener for a "listen"
event which occurs when the server
has successfully opened but before any requests start being processed.
Parameters
optional
options: boolean | AddEventListenerOptions