|
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:
839 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("../Chunk")} Chunk */
|
|---|
| 11 |
|
|---|
| 12 | class ChunkRenderError extends WebpackError {
|
|---|
| 13 | /**
|
|---|
| 14 | * Create a new ChunkRenderError
|
|---|
| 15 | * @param {Chunk} chunk A chunk
|
|---|
| 16 | * @param {string} file Related file
|
|---|
| 17 | * @param {Error} error Original error
|
|---|
| 18 | */
|
|---|
| 19 | constructor(chunk, file, error) {
|
|---|
| 20 | super();
|
|---|
| 21 |
|
|---|
| 22 | /** @type {string} */
|
|---|
| 23 | this.name = "ChunkRenderError";
|
|---|
| 24 | /** @type {Chunk} */
|
|---|
| 25 | this.chunk = chunk;
|
|---|
| 26 | /** @type {string} */
|
|---|
| 27 | this.file = file;
|
|---|
| 28 | /** @type {Error} */
|
|---|
| 29 | this.error = error;
|
|---|
| 30 | /** @type {string} */
|
|---|
| 31 | this.message = error.message;
|
|---|
| 32 | /** @type {string} */
|
|---|
| 33 | this.details = error.stack;
|
|---|
| 34 | }
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | /** @type {typeof ChunkRenderError} */
|
|---|
| 38 | module.exports = ChunkRenderError;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.