import { ValidationError } from '@nestjs/common' ; /**
 * Specific exception for class-validator errors
 */ export class ValidationException extends Error { public errors : ValidationError [ ] ; constructor ( errors ) { super ( 'Validation error' ) ; this . errors = errors ; } ee static factory ( errors ) { return new ValidationException ( errors ) ; } }