UNPKG

coffee-core

Version:

Coffee IT API core library

15 lines (14 loc) 607 B
import { ArgumentsHost, ExceptionFilter } from '@nestjs/common'; import { Observable } from 'rxjs'; import { CoffeeError } from '../domain/error.interface'; export declare class AllExceptionsFilter implements ExceptionFilter { private readonly logger; private static statusCodeRegex; private static getStatusFromMessage; private static isStatusCode; private static removeStatusFromMessage; catch(exception: any, host: ArgumentsHost): void | Observable<any>; handleUnknownException(exception: any): CoffeeError; private handleExceptionResponse; private formatErrorType; }