ExceptionFilter
import type { ExceptionFilter } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
Provides the necessary behavior to intercept an error thrown
catch
will be responsible for handling the error.
A first parameter will be automatically injected by Mandarine containing the Context of the exception (ExceptionContext)
interface ExceptionFilter <T = Error> {}