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

ExceptionContext

import type { ExceptionContext } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";

Provides information about an exception intercepted by a catch component.

getException() returns the instance of the error thrown getResponse() returns the response object in the current request getRequest() returns the request object of the current request

interface ExceptionContext <T = any> {
getException(): T;
getRequest(): any;
getResponse(): any;
getTimestamp(): string;
}

§Type Parameters

§
T = any
[src]

§Methods

§
getException(): T
[src]
§
getRequest(): any
[src]
§
getResponse(): any
[src]
§
getTimestamp(): string
[src]