generateError(error, module, generateContext) {
		switch (generateContext.type) {
			case "asset": {
				return new RawSource(error.message);
			}
			case "javascript": {
				return new RawSource(
					`throw new Error(${JSON.stringify(error.message)});`
				);
			}
			default:
				return null;
		}
	}
@param {Error} error the error
@param {NormalModule} module module for which the code should be generated
@param {GenerateContext} generateContext context for generate
@returns {Source | null} generated code