Skip to main content
Module

x/dactyl/mod.ts>Router#handleUnknownException

Web framework for Deno, built on top of Oak 🦇
Latest
method Router.prototype.handleUnknownException
import { Router } from "https://deno.land/x/dactyl@v0.1.0-alpha/mod.ts";

Helper method for handling non-standard exceptions raised at runtime. This could be caused by an unhandled promise rejection, or a custom error thrown either internally or from an external module.

Dactyl will send a 500 error to the end user.

Parameters

error: any
res: any