Projekt

Obecné

Profil

Stáhnout (554 Bajtů) Statistiky
| Větev: | Revize:
1
/*
2
	MIT License http://www.opensource.org/licenses/mit-license.php
3
	Author Tobias Koppers @sokra
4
*/
5
"use strict";
6

    
7
const WebpackError = require("./WebpackError");
8

    
9
module.exports = class ModuleDependencyWarning extends WebpackError {
10
	constructor(module, err, loc) {
11
		super(err.message);
12

    
13
		this.name = "ModuleDependencyWarning";
14
		this.details = err.stack
15
			.split("\n")
16
			.slice(1)
17
			.join("\n");
18
		this.module = module;
19
		this.loc = loc;
20
		this.error = err;
21
		this.origin = module.issuer;
22

    
23
		Error.captureStackTrace(this, this.constructor);
24
	}
25
};
(81-81/144)