Initial commit
[yaffs-website] / node_modules / ajv / lib / compile / validation_error.js
1 'use strict';
2
3 module.exports = ValidationError;
4
5
6 function ValidationError(errors) {
7   this.message = 'validation failed';
8   this.errors = errors;
9   this.ajv = this.validation = true;
10 }
11
12
13 ValidationError.prototype = Object.create(Error.prototype);
14 ValidationError.prototype.constructor = ValidationError;