webpack/lib/WebpackError.js

21 lines
402 B
JavaScript
Raw Normal View History

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Jarid Margolin @jaridmargolin
*/
"use strict";
module.exports = class WebpackError extends Error {
constructor(message) {
super(message);
2018-04-08 08:44:27 +08:00
this.message = message;
Error.captureStackTrace(this, this.constructor);
}
2018-04-08 08:44:27 +08:00
get details() {}
inspect() {
return this.stack + (this.details ? `\n${this.details}` : "");
}
};