| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Tobias Koppers @sokra | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2017-01-19 04:38:55 +08:00
										 |  |  | "use strict"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-25 05:17:47 +08:00
										 |  |  | const WebpackError = require("./WebpackError"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class ModuleNotFoundError extends WebpackError { | 
					
						
							| 
									
										
										
										
											2018-06-04 16:10:23 +08:00
										 |  |  | 	constructor(module, err) { | 
					
						
							|  |  |  | 		super("Module not found: " + err); | 
					
						
							| 
									
										
										
										
											2017-02-16 03:55:54 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-19 04:38:55 +08:00
										 |  |  | 		this.name = "ModuleNotFoundError"; | 
					
						
							|  |  |  | 		this.details = err.details; | 
					
						
							|  |  |  | 		this.missing = err.missing; | 
					
						
							|  |  |  | 		this.module = module; | 
					
						
							|  |  |  | 		this.error = err; | 
					
						
							| 
									
										
										
										
											2017-02-16 03:55:54 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		Error.captureStackTrace(this, this.constructor); | 
					
						
							| 
									
										
										
										
											2017-01-19 04:38:55 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-19 04:38:55 +08:00
										 |  |  | module.exports = ModuleNotFoundError; |