import type { ValidationError } from 'class-validator' ; import { GeocoderException } from './geocoder.exception' ; export class ValidationException extends GeocoderException { constructor ( private readonly errors ) { super ( 'Validation Failed.' ) ; } getValidationErrors ( ) { return this . errors ; } }