1 export default function HARError(errors) {
2 let message = 'validation failed';
4 this.name = 'HARError';
5 this.message = message;
8 if (typeof Error.captureStackTrace === 'function') {
9 Error.captureStackTrace(this, this.constructor);
11 this.stack = new Error(message).stack;
15 HARError.prototype = Error.prototype;