UNPKG

733 BTypeScriptView Raw
1import { Type, Abstract } from '../../interfaces';
2/**
3 * Decorator that marks a class as a Nest exception filter. An exception filter
4 * handles exceptions thrown by or not handled by your application code.
5 *
6 * The decorated class must implement the `ExceptionFilter` interface.
7 *
8 * @param exceptions one or more exception *types* specifying
9 * the exceptions to be caught and handled by this filter.
10 *
11 * @see [Exception Filters](https://docs.nestjs.com/exception-filters)
12 *
13 * @usageNotes
14 * Exception filters are applied using the `@UseFilters()` decorator, or (globally)
15 * with `app.useGlobalFilters()`.
16 *
17 * @publicApi
18 */
19export declare function Catch(...exceptions: Array<Type<any> | Abstract<any>>): ClassDecorator;