UNPKG

problem-details

Version:

HTTP problem details model based on RFC7807

14 lines (13 loc) 520 B
import { ExceptionFilter, ArgumentsHost } from '@nestjs/common'; import { ProblemDetail } from '../models'; import { FilterOptions } from './filter-options.interface'; export declare class ProblemDetailFilter implements ExceptionFilter { private readonly options?; constructor(options?: FilterOptions | undefined); /** * Handles a thrown ProblemDetail error in NestJS. * @param exception Thrown exception * @param host */ catch(exception: ProblemDetail, host: ArgumentsHost): void; }