Catch
@tsed/platform-exceptions
Usage
typescript
import { Catch } from "@tsed/platform-exceptions";
See /packages/platform/platform-exceptions/src/types/decorators/catch.ts.
Overview
ts
function Catch(...types: (Type<Error | any> | string)[]): (target: any) => void;
Description
Register a new class to handle an specific exception.