diff options
Diffstat (limited to 'node_modules/har-validator/src/error.js')
-rw-r--r-- | node_modules/har-validator/src/error.js | 10 |
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 |