2016-01-04 04:42:56 +08:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Tobias Koppers @sokra
|
|
|
|
*/
|
|
|
|
function ModuleWarning(module, warning) {
|
|
|
|
Error.call(this);
|
|
|
|
Error.captureStackTrace(this, ModuleWarning);
|
|
|
|
this.name = "ModuleWarning";
|
|
|
|
this.module = module;
|
|
|
|
this.message = warning;
|
|
|
|
this.warning = warning;
|
|
|
|
}
|
|
|
|
module.exports = ModuleWarning;
|
|
|
|
|
|
|
|
ModuleWarning.prototype = Object.create(Error.prototype);
|
2016-05-20 13:39:36 +08:00
|
|
|
ModuleWarning.prototype.constructor = ModuleWarning;
|