Skip to main content
Module

x/oak_nest/mod.ts>Catch

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
function Catch
import { Catch } from "https://deno.land/x/oak_nest@v3.0.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> | Abstract<any>>

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

Returns

ClassDecorator