Newer
Older
CVSS_3.0_GUI / node_modules / nwjs-builder-phoenix / node_modules / request / node_modules / har-validator / lib / error.js
root on 7 May 2019 373 bytes Initial commit
  1. function HARError (errors) {
  2. var message = 'validation failed'
  3.  
  4. this.name = 'HARError'
  5. this.message = message
  6. this.errors = errors
  7.  
  8. if (typeof Error.captureStackTrace === 'function') {
  9. Error.captureStackTrace(this, this.constructor)
  10. } else {
  11. this.stack = (new Error(message)).stack
  12. }
  13. }
  14.  
  15. HARError.prototype = Error.prototype
  16.  
  17. module.exports = HARError
Buy Me A Coffee