index.js
function ScrapeError(msg, response, bodyString) {
  Error.call(this, msg);

  this.response = response;
  this.bodyString = bodyString;
}
function ScrapeError(msg, response, bodyString) {
  Error.call(this, msg);

  this.response = response;
  this.bodyString = bodyString;
}
function ScrapeError ( msg , response , bodyString ) { Error . call ( this , msg ) ; this . response = response ; this . bodyString = bodyString ; }
Custom Error for node-scrapy
Custom Error for node - scrapy