Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/mod.ts>Catch

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function Catch
import { Catch } from "https://deno.land/x/deno_nest@v3.6.1/mod.ts";

Decorator that marks a class as a Nest exception filter. An exception filter handles exceptions thrown by or not handled by your application code.

The decorated class must implement the ExceptionFilter interface.

Parameters

...exceptions: Array<Type<any>>

one or more exception types specifying the exceptions to be caught and handled by this filter.

Returns

ClassDecorator