diff --git a/lib/Doctrine/DBAL/Exception/NoKeyValue.php b/lib/Doctrine/DBAL/Exception/NoKeyValue.php index 34093704aa1..a3d243495c1 100644 --- a/lib/Doctrine/DBAL/Exception/NoKeyValue.php +++ b/lib/Doctrine/DBAL/Exception/NoKeyValue.php @@ -2,7 +2,7 @@ namespace Doctrine\DBAL\Exception; -use Doctrine\DBAL\Exception; +use Doctrine\DBAL\DBALException; use function sprintf; @@ -11,7 +11,7 @@ * * @psalm-immutable */ -final class NoKeyValue extends Exception +final class NoKeyValue extends DBALException { public static function fromColumnCount(int $columnCount): self { diff --git a/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php b/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php index 4e6b4b23a73..b6345e6884c 100644 --- a/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php +++ b/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php @@ -722,7 +722,7 @@ protected function getPostAlterTableIndexForeignKeySQL(TableDiff $diff) $fromTable = $diff->fromTable; if (! $fromTable instanceof Table) { - throw new Exception( + throw new DBALException( 'Sqlite platform requires for alter table the table diff with reference to original table schema' ); }