mirror of
https://github.com/thangisme/notes.git
synced 2025-10-15 11:14:17 -04:00
Initial commit
This commit is contained in:
14
node_modules/ajv/lib/compile/validation_error.js
generated
vendored
Normal file
14
node_modules/ajv/lib/compile/validation_error.js
generated
vendored
Normal file
@@ -0,0 +1,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;
|
Reference in New Issue
Block a user