|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
681 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
|---|
| 3 | Author Tobias Koppers @sokra
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | "use strict";
|
|---|
| 7 |
|
|---|
| 8 | const WebpackError = require("./WebpackError");
|
|---|
| 9 |
|
|---|
| 10 | /** @typedef {import("../Module")} Module */
|
|---|
| 11 |
|
|---|
| 12 | class ModuleHashingError extends WebpackError {
|
|---|
| 13 | /**
|
|---|
| 14 | * Create a new ModuleHashingError
|
|---|
| 15 | * @param {Module} module related module
|
|---|
| 16 | * @param {Error} error Original error
|
|---|
| 17 | */
|
|---|
| 18 | constructor(module, error) {
|
|---|
| 19 | super();
|
|---|
| 20 |
|
|---|
| 21 | /** @type {string} */
|
|---|
| 22 | this.name = "ModuleHashingError";
|
|---|
| 23 | this.error = error;
|
|---|
| 24 | this.message = error.message;
|
|---|
| 25 | this.details = error.stack;
|
|---|
| 26 | this.module = module;
|
|---|
| 27 | }
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | /** @type {typeof ModuleHashingError} */
|
|---|
| 31 | module.exports = ModuleHashingError;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.