Initial commit
This commit is contained in:
commit
ec49fedc45
1288 files changed
+226749
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = HARError;
|
||||
function HARError(errors) {
|
||||
var message = 'validation failed';
|
||||
|
||||
this.name = 'HARError';
|
||||
this.message = message;
|
||||
this.errors = errors;
|
||||
|
||||
if (typeof Error.captureStackTrace === 'function') {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
} else {
|
||||
this.stack = new Error(message).stack;
|
||||
}
|
||||
}
|
||||
|
||||
HARError.prototype = Error.prototype;
|
||||
module.exports = exports['default'];
|
||||
Reference in new issue
Block a user