eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::updateRole PHP Method

updateRole() public method

Update role (draft).
public updateRole ( eZ\Publish\SPI\Persistence\User\RoleUpdateStruct $role )
$role eZ\Publish\SPI\Persistence\User\RoleUpdateStruct
    public function updateRole(RoleUpdateStruct $role)
    {
        try {
            return $this->innerGateway->updateRole($role);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }