Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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> {
catch(exceptionContext: ExceptionContext<T>, ...parameters: any): void;
}

§Type Parameters

§
T = Error
[src]

§Methods

§
catch(exceptionContext: ExceptionContext<T>, ...parameters: any): void
[src]