validation_error.js 306 B

1234567891011121314
  1. 'use strict';
  2. module.exports = ValidationError;
  3. function ValidationError(errors) {
  4. this.message = 'validation failed';
  5. this.errors = errors;
  6. this.ajv = this.validation = true;
  7. }
  8. ValidationError.prototype = Object.create(Error.prototype);
  9. ValidationError.prototype.constructor = ValidationError;