deleteMultiple = $deleteMultiple; $this->logger = $logger; } /** * @inheritdoc */ public function execute(array $links): void { if (empty($links)) { throw new InputException(__('Input data is empty')); } try { $this->deleteMultiple->execute($links); } catch (Exception $e) { $this->logger->error($e->getMessage()); throw new CouldNotDeleteException(__('Could not delete StockSourceLinks'), $e); } } }