Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/har-validator/src/error.js')
-rw-r--r--node_modules/har-validator/src/error.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/har-validator/src/error.js b/node_modules/har-validator/src/error.js
new file mode 100644
index 000000000..fc08a8721
--- /dev/null
+++ b/node_modules/har-validator/src/error.js
@@ -0,0 +1,10 @@
+'use strict'
+
+function ValidationError (errors) {
+ this.name = 'ValidationError'
+ this.errors = errors
+}
+
+ValidationError.prototype = Error.prototype
+
+module.exports = ValidationError