Initial commit

This commit is contained in:
Luis Fernando Molina committed 2018-02-15 19:52:31 +01:00
commit 99c0d8fe14
1279 files changed
+222856

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export default function HARError (errors) {
let 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