webpack/lib/EntryModuleNotFoundError.js

23 lines
493 B
JavaScript

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
class EntryModuleNotFoundError extends Error {
constructor(err) {
super();
this.name = "EntryModuleNotFoundError";
this.message = "Entry module not found: " + err;
if(Error.hasOwnProperty("captureStackTrace")) {
Error.captureStackTrace(this, this.constructor);
}
this.details = err.details;
this.error = err;
}
}
module.exports = EntryModuleNotFoundError;