| | |
| | | |
| | | class ModuleBuildError extends WebpackError { |
| | | /** |
| | | * Creates an instance of ModuleBuildError. |
| | | * @param {string | ErrorWithHideStack} err error thrown |
| | | * @param {{from?: string|null}} info additional info |
| | | * @param {{ from?: string | null }} info additional info |
| | | */ |
| | | constructor(err, { from = null } = {}) { |
| | | let message = "Module build failed"; |
| | | /** @type {undefined | string} */ |
| | | let details; |
| | | |
| | | message += from ? ` (from ${from}):\n` : ": "; |
| | |
| | | |
| | | super(message); |
| | | |
| | | /** @type {string} */ |
| | | this.name = "ModuleBuildError"; |
| | | this.details = details; |
| | | this.error = err; |
| | | } |
| | | |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | | serialize(context) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | */ |
| | | deserialize(context) { |