throw $exportNotGeneratedException;
} if ($result->
hasErrors()) { $exportInvalidException =
new ExportInvalidException($productExport,
$result->
getErrors());
$this->
logException($context->
getContext(),
$exportInvalidException);
throw $exportInvalidException;
} $writeProductExportSuccessful =
$this->productExportFileHandler->
writeProductExportContent( $result->
getContent(),
$filePath );
if (!
$writeProductExportSuccessful) { return;
} $this->productExportRepository->
update( [ [