Source code
Revision control
Copy as Markdown
Other Tools
/*
Author Tobias Koppers @sokra
*/
"use strict";
const WebpackError = require("./WebpackError");
/** @typedef {import("../Module")} Module */
class ModuleHashingError extends WebpackError {
/**
* Create a new ModuleHashingError
* @param {Module} module related module
* @param {Error} error Original error
*/
constructor(module, error) {
super();
/** @type {string} */
this.name = "ModuleHashingError";
/** @type {Error} */
this.error = error;
/** @type {string} */
this.message = error.message;
/** @type {string | undefined} */
this.details = error.stack;
/** @type {Module} */
this.module = module;
}
}
/** @type {typeof ModuleHashingError} */
module.exports = ModuleHashingError;