eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway\ExceptionConversion::updateObjectStateLinks PHP Method

    public function updateObjectStateLinks($oldStateId, $newStateId)
    {
        try {
            return $this->innerGateway->updateObjectStateLinks($oldStateId, $newStateId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }