summaryrefslogtreecommitdiff
path: root/node_modules/ajv/lib/compile/error_classes.js
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/ajv/lib/compile/error_classes.js
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/ajv/lib/compile/error_classes.js')
-rw-r--r--node_modules/ajv/lib/compile/error_classes.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/node_modules/ajv/lib/compile/error_classes.js b/node_modules/ajv/lib/compile/error_classes.js
deleted file mode 100644
index 0b0ec4e..0000000
--- a/node_modules/ajv/lib/compile/error_classes.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-
-var resolve = require('./resolve');
-
-module.exports = {
- Validation: errorSubclass(ValidationError),
- MissingRef: errorSubclass(MissingRefError)
-};
-
-
-function ValidationError(errors) {
- this.message = 'validation failed';
- this.errors = errors;
- this.ajv = this.validation = true;
-}
-
-
-MissingRefError.message = function (baseId, ref) {
- return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
-};
-
-
-function MissingRefError(baseId, ref, message) {
- this.message = message || MissingRefError.message(baseId, ref);
- this.missingRef = resolve.url(baseId, ref);
- this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));
-}
-
-
-function errorSubclass(Subclass) {
- Subclass.prototype = Object.create(Error.prototype);
- Subclass.prototype.constructor = Subclass;
- return Subclass;
-}