/**
* Updates an existing location.
*
* @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException
*
* @param \eZ\Publish\SPI\Persistence\Content\Location\UpdateStruct $location
* @param int $locationId
*
* @return void
*/
public function update(UpdateStruct $location, $locationId)
{
try {
return $this->innerGateway->update($location, $locationId);
} catch (DBALException $e) {
throw new RuntimeException('Database error', 0, $e);
} catch (PDOException $e) {
throw new RuntimeException('Database error', 0, $e);
}
}