source: trip-planner-front/node_modules/webpack/lib/CodeGenerationError.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 619 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
8const WebpackError = require("./WebpackError");
9
10/** @typedef {import("./Module")} Module */
11
12class CodeGenerationError extends WebpackError {
13 /**
14 * Create a new CodeGenerationError
15 * @param {Module} module related module
16 * @param {Error} error Original error
17 */
18 constructor(module, error) {
19 super();
20
21 this.name = "CodeGenerationError";
22 this.error = error;
23 this.message = error.message;
24 this.details = error.stack;
25 this.module = module;
26 }
27}
28
29module.exports = CodeGenerationError;
Note: See TracBrowser for help on using the repository browser.