import { ArgumentsHost, ExceptionFilter } from '@nestjs/common'; import { QueryFailedError } from 'typeorm'; import { ValidationException } from '../exceptions'; declare type QueryFailedErrorType = QueryFailedError & { message: string; code: string; errno: number; sqlMessage: string; sqlState: string; index: number; sql: string; name: string; query: string; parameters: string[]; }; export declare class AnyExceptionFilter implements ExceptionFilter { static handleSqlExceptions(exception: QueryFailedErrorType): ValidationException | QueryFailedErrorType; catch(exception: any, host: ArgumentsHost): void; } export {};