@algoan/nestjs-http-exception-filter
Version:
A simple http exception filter for NestJS applications
10 lines (9 loc) • 356 B
TypeScript
import { ValidationError } from 'class-validator';
export declare function getCode(exResponse: ExceptionResponse | string): string;
export declare function getErrorMessage(exResponse: ExceptionResponse | string): string;
interface ExceptionResponse {
code?: string;
error?: string;
message?: string | string[] | ValidationError[];
}
export {};