2013-01-31 01:49:25 +08:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Tobias Koppers @sokra
|
|
|
|
*/
|
2016-07-03 19:13:01 +08:00
|
|
|
function ModuleNotFoundError(module, err, dependencies) {
|
2013-01-31 01:49:25 +08:00
|
|
|
Error.call(this);
|
|
|
|
Error.captureStackTrace(this, ModuleNotFoundError);
|
|
|
|
this.name = "ModuleNotFoundError";
|
|
|
|
this.message = "Module not found: " + err;
|
2014-01-21 23:24:17 +08:00
|
|
|
this.details = err.details;
|
2015-01-18 04:55:44 +08:00
|
|
|
this.missing = err.missing;
|
2013-01-31 01:49:25 +08:00
|
|
|
this.module = module;
|
2016-07-03 19:13:01 +08:00
|
|
|
this.origin = module;
|
|
|
|
this.dependencies = dependencies;
|
2013-01-31 01:49:25 +08:00
|
|
|
this.error = err;
|
|
|
|
}
|
|
|
|
module.exports = ModuleNotFoundError;
|
|
|
|
|
|
|
|
ModuleNotFoundError.prototype = Object.create(Error.prototype);
|
2016-05-20 13:39:36 +08:00
|
|
|
ModuleNotFoundError.prototype.constructor = ModuleNotFoundError;
|