import { ErrorWithStatusCode } from '../../../error_with_status_code' ; export class DataValidationError extends ErrorWithStatusCode { constructor ( public readonly reason , statusCode = 500 ) { super ( 'Data validation failure' , statusCode ) ; } public getReason ( ) { return this . reason ?? [ ] ; } }