/** * @param StockStatusInterface $stockStatus * @return bool|true * @throws CouldNotDeleteException */ public function delete(StockStatusInterface $stockStatus) { try { $this->resource->delete($stockStatus); } catch (\Exception $exception) { throw new CouldNotDeleteException(__($exception->getMessage())); } return true; }