a zip code crypto-currency system good for red ONLY

ModuleError.js 650B

12345678910111213141516171819202122232425
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const WebpackError = require("./WebpackError");
  7. const cleanUp = require("./ErrorHelpers").cleanUp;
  8. class ModuleError extends WebpackError {
  9. constructor(module, err) {
  10. super();
  11. this.name = "ModuleError";
  12. this.module = module;
  13. this.message = err && typeof err === "object" && err.message ? err.message : err;
  14. this.error = err;
  15. this.details = err && typeof err === "object" && err.stack ? cleanUp(err.stack, this.message) : undefined;
  16. Error.captureStackTrace(this, this.constructor);
  17. }
  18. }
  19. module.exports = ModuleError;