diff --git a/lib/Extension/LanguageServerRename/Adapter/ReferenceFinder/ClassMover/ClassRenamer.php b/lib/Extension/LanguageServerRename/Adapter/ReferenceFinder/ClassMover/ClassRenamer.php
index <HASH>..<HASH> 100644
--- a/lib/Extension/LanguageServerRename/Adapter/ReferenceFinder/ClassMover/ClassRenamer.php
+++ b/lib/Extension/LanguageServerRename/Adapter/ReferenceFinder/ClassMover/ClassRenamer.php
@@ -91,7 +91,7 @@ final class ClassRenamer implements Renamer
             $oldUri = $this->oldNameToUriConverter->convert($originalName->getFullyQualifiedNameText());
             $newUri = $this->newNameToUriConverter->convert($newName);
         } catch (CouldNotConvertClassToUri $error) {
-            throw new CouldNotRename($e->getMessage(), 0, $error);
+            throw new CouldNotRename($error->getMessage(), 0, $error);
         }
 
         if ($newName === $originalName->getFullyQualifiedNameText()) {
Fix error when renaming (#<I>)