aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ajv/lib/compile/validation_error.js
blob: 3c5c59478c5d34af0dee42cc16ad37ec158df458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

module.exports = ValidationError;


function ValidationError(errors) {
  this.message = 'validation failed';
  this.errors = errors;
  this.ajv = this.validation = true;
}


ValidationError.prototype = Object.create(Error.prototype);
ValidationError.prototype.constructor = ValidationError;