{"size": 573, "ext": "js", "max_stars_repo_path": "lib/util/CustomError.js", "max_stars_repo_name": "gmontoya/hybridSPARQLEngine", "max_stars_repo_stars_event_min_datetime": "2015-03-11T15:34:06.000Z", "max_stars_repo_stars_event_max_datetime": "2015-03-14T13:57:52.000Z", "max_issues_repo_path": "lib/util/CustomError.js", "max_issues_repo_name": "MementoHackathon2015/ldf-memento-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/util/CustomError.js", "max_forks_repo_name": "MementoHackathon2015/ldf-memento-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.2857142857, "max_line_length": 81, "alphanum_fraction": 0.6806282723}
/*! @license ©2014 Ruben Verborgh - Multimedia Lab / iMinds / Ghent University */

// Creates a constructor for an Error with the given name
function createErrorType(name, init) {
  function E(message) {
    this.name = name;
    if (!Error.captureStackTrace)
      this.stack = (new Error()).stack;
    else
      Error.captureStackTrace(this, this.constructor);
    this.message = message;
    init && init.apply(this, arguments);
  }
  E.prototype = new Error();
  E.prototype.name = name;
  E.prototype.constructor = E;
  return E;
}

module.exports = createErrorType;
