4a9d72d3e6c63e7097e76268c608c6259abd767a4f118385fa4fa650f8a03c65984b9bc733a0546fd1fafbb80dbee1fa2fd2d6189c36c69f2e0d99f2088402 373 B

1234567891011121314151617
  1. function HARError (errors) {
  2. var message = 'validation failed'
  3. this.name = 'HARError'
  4. this.message = message
  5. this.errors = errors
  6. if (typeof Error.captureStackTrace === 'function') {
  7. Error.captureStackTrace(this, this.constructor)
  8. } else {
  9. this.stack = (new Error(message)).stack
  10. }
  11. }
  12. HARError.prototype = Error.prototype
  13. module.exports = HARError