This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BadRequestException } from '@nestjs/common'; | |
import { ValidationError } from 'class-validator'; | |
import { iterate } from 'iterare'; | |
const VALIDATION_ERROR = () => 'There are validation errors'; | |
export class ValidationException extends BadRequestException { | |
code: string; | |
errors: string[]; | |
constructor(errors: ValidationError[]) { |