UNPKG

@nestjs-mod/common

Version:

A collection of utilities for unifying NestJS applications and modules

16 lines 637 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigModelValidationErrors = void 0; class ConfigModelValidationErrors extends Error { constructor(errors, info, message) { super(message || Object.entries(info.validations) .filter(([k, v]) => errors.find((err) => err.property === k)) .map(([k, v]) => `${k}-${Object.keys(v.constraints).join(',')}`) .join(';')); this.errors = errors; this.info = info; } } exports.ConfigModelValidationErrors = ConfigModelValidationErrors; //# sourceMappingURL=errors.js.map