diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-18 00:08:23 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-18 00:10:03 +0200 |
| commit | 05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch) | |
| tree | cf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/dbal/src/Exception | |
| parent | 32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff) | |
| download | AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2 AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip | |
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/dbal/src/Exception')
37 files changed, 0 insertions, 665 deletions
diff --git a/vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php b/vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php deleted file mode 100644 index b49fd0c..0000000 --- a/vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\ConnectionException; | ||
| 8 | |||
| 9 | /** @psalm-immutable */ | ||
| 10 | final class CommitFailedRollbackOnly extends ConnectionException | ||
| 11 | { | ||
| 12 | public static function new(): self | ||
| 13 | { | ||
| 14 | return new self('Transaction commit failed because the transaction has been marked for rollback only.'); | ||
| 15 | } | ||
| 16 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/ConnectionException.php b/vendor/doctrine/dbal/src/Exception/ConnectionException.php deleted file mode 100644 index 673475d..0000000 --- a/vendor/doctrine/dbal/src/Exception/ConnectionException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Base class for all connection related errors detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class ConnectionException extends DriverException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/ConnectionLost.php b/vendor/doctrine/dbal/src/Exception/ConnectionLost.php deleted file mode 100644 index eda8db1..0000000 --- a/vendor/doctrine/dbal/src/Exception/ConnectionLost.php +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** @psalm-immutable */ | ||
| 8 | final class ConnectionLost extends ConnectionException | ||
| 9 | { | ||
| 10 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php deleted file mode 100644 index 13a3250..0000000 --- a/vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Base class for all constraint violation related errors detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class ConstraintViolationException extends ServerException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php b/vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php deleted file mode 100644 index d569d78..0000000 --- a/vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** @psalm-immutable */ | ||
| 8 | class DatabaseDoesNotExist extends DatabaseObjectNotFoundException | ||
| 9 | { | ||
| 10 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php b/vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php deleted file mode 100644 index b336015..0000000 --- a/vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Base class for all already existing database object related errors detected in the driver. | ||
| 9 | * | ||
| 10 | * A database object is considered any asset that can be created in a database | ||
| 11 | * such as schemas, tables, views, sequences, triggers, constraints, indexes, | ||
| 12 | * functions, stored procedures etc. | ||
| 13 | * | ||
| 14 | * @psalm-immutable | ||
| 15 | */ | ||
| 16 | class DatabaseObjectExistsException extends ServerException | ||
| 17 | { | ||
| 18 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php b/vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php deleted file mode 100644 index d12dfff..0000000 --- a/vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Base class for all unknown database object related errors detected in the driver. | ||
| 9 | * | ||
| 10 | * A database object is considered any asset that can be created in a database | ||
| 11 | * such as schemas, tables, views, sequences, triggers, constraints, indexes, | ||
| 12 | * functions, stored procedures etc. | ||
| 13 | * | ||
| 14 | * @psalm-immutable | ||
| 15 | */ | ||
| 16 | class DatabaseObjectNotFoundException extends ServerException | ||
| 17 | { | ||
| 18 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseRequired.php b/vendor/doctrine/dbal/src/Exception/DatabaseRequired.php deleted file mode 100644 index fc36a9b..0000000 --- a/vendor/doctrine/dbal/src/Exception/DatabaseRequired.php +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** @psalm-immutable */ | ||
| 12 | class DatabaseRequired extends \Exception implements Exception | ||
| 13 | { | ||
| 14 | public static function new(string $methodName): self | ||
| 15 | { | ||
| 16 | return new self( | ||
| 17 | sprintf( | ||
| 18 | 'A database is required for the method: %s.', | ||
| 19 | $methodName, | ||
| 20 | ), | ||
| 21 | ); | ||
| 22 | } | ||
| 23 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DeadlockException.php b/vendor/doctrine/dbal/src/Exception/DeadlockException.php deleted file mode 100644 index 9000387..0000000 --- a/vendor/doctrine/dbal/src/Exception/DeadlockException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a deadlock error of a transaction detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class DeadlockException extends ServerException implements RetryableException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DriverException.php b/vendor/doctrine/dbal/src/Exception/DriverException.php deleted file mode 100644 index d794d77..0000000 --- a/vendor/doctrine/dbal/src/Exception/DriverException.php +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver; | ||
| 8 | use Doctrine\DBAL\Exception; | ||
| 9 | use Doctrine\DBAL\Query; | ||
| 10 | |||
| 11 | use function assert; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * Base class for all errors detected in the driver. | ||
| 15 | * | ||
| 16 | * @psalm-immutable | ||
| 17 | */ | ||
| 18 | class DriverException extends \Exception implements Exception, Driver\Exception | ||
| 19 | { | ||
| 20 | /** | ||
| 21 | * @internal | ||
| 22 | * | ||
| 23 | * @param Driver\Exception $driverException The DBAL driver exception to chain. | ||
| 24 | * @param Query|null $query The SQL query that triggered the exception, if any. | ||
| 25 | */ | ||
| 26 | public function __construct( | ||
| 27 | Driver\Exception $driverException, | ||
| 28 | private readonly ?Query $query, | ||
| 29 | ) { | ||
| 30 | if ($query !== null) { | ||
| 31 | $message = 'An exception occurred while executing a query: ' . $driverException->getMessage(); | ||
| 32 | } else { | ||
| 33 | $message = 'An exception occurred in the driver: ' . $driverException->getMessage(); | ||
| 34 | } | ||
| 35 | |||
| 36 | parent::__construct($message, $driverException->getCode(), $driverException); | ||
| 37 | } | ||
| 38 | |||
| 39 | public function getSQLState(): ?string | ||
| 40 | { | ||
| 41 | $previous = $this->getPrevious(); | ||
| 42 | assert($previous instanceof Driver\Exception); | ||
| 43 | |||
| 44 | return $previous->getSQLState(); | ||
| 45 | } | ||
| 46 | |||
| 47 | public function getQuery(): ?Query | ||
| 48 | { | ||
| 49 | return $this->query; | ||
| 50 | } | ||
| 51 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/DriverRequired.php b/vendor/doctrine/dbal/src/Exception/DriverRequired.php deleted file mode 100644 index e37ac68..0000000 --- a/vendor/doctrine/dbal/src/Exception/DriverRequired.php +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use function sprintf; | ||
| 8 | |||
| 9 | /** @psalm-immutable */ | ||
| 10 | final class DriverRequired extends InvalidArgumentException | ||
| 11 | { | ||
| 12 | /** @param string|null $url The URL that was provided in the connection parameters (if any). */ | ||
| 13 | public static function new(?string $url = null): self | ||
| 14 | { | ||
| 15 | if ($url !== null) { | ||
| 16 | return new self( | ||
| 17 | sprintf( | ||
| 18 | 'The options "driver" or "driverClass" are mandatory if a connection URL without scheme ' | ||
| 19 | . 'is given to DriverManager::getConnection(). Given URL "%s".', | ||
| 20 | $url, | ||
| 21 | ), | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | |||
| 25 | return new self( | ||
| 26 | 'The options "driver" or "driverClass" are mandatory if no PDO ' | ||
| 27 | . 'instance is given to DriverManager::getConnection().', | ||
| 28 | ); | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php deleted file mode 100644 index 22531ec..0000000 --- a/vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a foreign key constraint violation detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class ForeignKeyConstraintViolationException extends ConstraintViolationException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php b/vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php deleted file mode 100644 index 7b7cd3d..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * Exception to be thrown when invalid arguments are passed to any DBAL API | ||
| 11 | * | ||
| 12 | * @psalm-immutable | ||
| 13 | */ | ||
| 14 | class InvalidArgumentException extends \InvalidArgumentException implements Exception | ||
| 15 | { | ||
| 16 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidColumnDeclaration.php b/vendor/doctrine/dbal/src/Exception/InvalidColumnDeclaration.php deleted file mode 100644 index c177611..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidColumnDeclaration.php +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | use function sprintf; | ||
| 11 | |||
| 12 | /** @psalm-immutable */ | ||
| 13 | final class InvalidColumnDeclaration extends LogicException implements Exception | ||
| 14 | { | ||
| 15 | public static function fromInvalidColumnType(string $columnName, InvalidColumnType $e): self | ||
| 16 | { | ||
| 17 | return new self(sprintf('Column "%s" has invalid type', $columnName), 0, $e); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidColumnType.php b/vendor/doctrine/dbal/src/Exception/InvalidColumnType.php deleted file mode 100644 index 6c3c8ec..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidColumnType.php +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception; | ||
| 8 | use LogicException; | ||
| 9 | |||
| 10 | /** @psalm-immutable */ | ||
| 11 | abstract class InvalidColumnType extends LogicException implements Exception | ||
| 12 | { | ||
| 13 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnLengthRequired.php b/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnLengthRequired.php deleted file mode 100644 index 1d5e795..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnLengthRequired.php +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception\InvalidColumnType; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception\InvalidColumnType; | ||
| 8 | use Doctrine\DBAL\Platforms\AbstractPlatform; | ||
| 9 | |||
| 10 | use function get_debug_type; | ||
| 11 | use function sprintf; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * @internal | ||
| 15 | * | ||
| 16 | * @psalm-immutable | ||
| 17 | */ | ||
| 18 | final class ColumnLengthRequired extends InvalidColumnType | ||
| 19 | { | ||
| 20 | /** | ||
| 21 | * @param AbstractPlatform $platform The target platform | ||
| 22 | * @param string $type The SQL column type | ||
| 23 | */ | ||
| 24 | public static function new(AbstractPlatform $platform, string $type): self | ||
| 25 | { | ||
| 26 | return new self( | ||
| 27 | sprintf( | ||
| 28 | '%s requires the length of a %s column to be specified', | ||
| 29 | get_debug_type($platform), | ||
| 30 | $type, | ||
| 31 | ), | ||
| 32 | ); | ||
| 33 | } | ||
| 34 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnPrecisionRequired.php b/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnPrecisionRequired.php deleted file mode 100644 index 8898cd0..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnPrecisionRequired.php +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception\InvalidColumnType; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception\InvalidColumnType; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * @internal | ||
| 11 | * | ||
| 12 | * @psalm-immutable | ||
| 13 | */ | ||
| 14 | final class ColumnPrecisionRequired extends InvalidColumnType | ||
| 15 | { | ||
| 16 | public static function new(): self | ||
| 17 | { | ||
| 18 | return new self('Column precision is not specified'); | ||
| 19 | } | ||
| 20 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnScaleRequired.php b/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnScaleRequired.php deleted file mode 100644 index 472cbc3..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnScaleRequired.php +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception\InvalidColumnType; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception\InvalidColumnType; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * @internal | ||
| 11 | * | ||
| 12 | * @psalm-immutable | ||
| 13 | */ | ||
| 14 | final class ColumnScaleRequired extends InvalidColumnType | ||
| 15 | { | ||
| 16 | public static function new(): self | ||
| 17 | { | ||
| 18 | return new self('Column scale is not specified'); | ||
| 19 | } | ||
| 20 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php b/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php deleted file mode 100644 index 2ebfd87..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Driver; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** @psalm-immutable */ | ||
| 12 | final class InvalidDriverClass extends InvalidArgumentException | ||
| 13 | { | ||
| 14 | public static function new(string $driverClass): self | ||
| 15 | { | ||
| 16 | return new self( | ||
| 17 | sprintf( | ||
| 18 | 'The given driver class %s has to implement the %s interface.', | ||
| 19 | $driverClass, | ||
| 20 | Driver::class, | ||
| 21 | ), | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php b/vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php deleted file mode 100644 index e5bfcee..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for an invalid specified field name in a statement detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class InvalidFieldNameException extends ServerException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php b/vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php deleted file mode 100644 index 2cbe82a..0000000 --- a/vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Connection; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** @psalm-immutable */ | ||
| 12 | final class InvalidWrapperClass extends InvalidArgumentException | ||
| 13 | { | ||
| 14 | public static function new(string $wrapperClass): self | ||
| 15 | { | ||
| 16 | return new self( | ||
| 17 | sprintf( | ||
| 18 | 'The given wrapper class %s has to be a subtype of %s.', | ||
| 19 | $wrapperClass, | ||
| 20 | Connection::class, | ||
| 21 | ), | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php b/vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php deleted file mode 100644 index 2e81580..0000000 --- a/vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a lock wait timeout error of a transaction detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class LockWaitTimeoutException extends ServerException implements RetryableException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/MalformedDsnException.php b/vendor/doctrine/dbal/src/Exception/MalformedDsnException.php deleted file mode 100644 index eb3056c..0000000 --- a/vendor/doctrine/dbal/src/Exception/MalformedDsnException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** @psalm-immutable */ | ||
| 8 | class MalformedDsnException extends InvalidArgumentException | ||
| 9 | { | ||
| 10 | public static function new(): self | ||
| 11 | { | ||
| 12 | return new self('Malformed database connection URL'); | ||
| 13 | } | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/NoActiveTransaction.php b/vendor/doctrine/dbal/src/Exception/NoActiveTransaction.php deleted file mode 100644 index a8d19c5..0000000 --- a/vendor/doctrine/dbal/src/Exception/NoActiveTransaction.php +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\ConnectionException; | ||
| 8 | |||
| 9 | /** @psalm-immutable */ | ||
| 10 | final class NoActiveTransaction extends ConnectionException | ||
| 11 | { | ||
| 12 | public static function new(): self | ||
| 13 | { | ||
| 14 | return new self('There is no active transaction.'); | ||
| 15 | } | ||
| 16 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/NoKeyValue.php b/vendor/doctrine/dbal/src/Exception/NoKeyValue.php deleted file mode 100644 index 5cea11d..0000000 --- a/vendor/doctrine/dbal/src/Exception/NoKeyValue.php +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\Exception; | ||
| 8 | |||
| 9 | use function sprintf; | ||
| 10 | |||
| 11 | /** | ||
| 12 | * @internal | ||
| 13 | * | ||
| 14 | * @psalm-immutable | ||
| 15 | */ | ||
| 16 | final class NoKeyValue extends \Exception implements Exception | ||
| 17 | { | ||
| 18 | public static function fromColumnCount(int $columnCount): self | ||
| 19 | { | ||
| 20 | return new self( | ||
| 21 | sprintf( | ||
| 22 | 'Fetching as key-value pairs requires the result to contain at least 2 columns, %d given.', | ||
| 23 | $columnCount, | ||
| 24 | ), | ||
| 25 | ); | ||
| 26 | } | ||
| 27 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php b/vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php deleted file mode 100644 index 96a8582..0000000 --- a/vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a non-unique/ambiguous specified field name in a statement detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class NonUniqueFieldNameException extends ServerException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php deleted file mode 100644 index 4c2a7be..0000000 --- a/vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a NOT NULL constraint violation detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class NotNullConstraintViolationException extends ConstraintViolationException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/ReadOnlyException.php b/vendor/doctrine/dbal/src/Exception/ReadOnlyException.php deleted file mode 100644 index 73fa5b1..0000000 --- a/vendor/doctrine/dbal/src/Exception/ReadOnlyException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a write operation attempt on a read-only database element detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class ReadOnlyException extends ServerException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/RetryableException.php b/vendor/doctrine/dbal/src/Exception/RetryableException.php deleted file mode 100644 index 7ed6cf2..0000000 --- a/vendor/doctrine/dbal/src/Exception/RetryableException.php +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Throwable; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * Marker interface for all exceptions where retrying the transaction makes sense. | ||
| 11 | * | ||
| 12 | * @psalm-immutable | ||
| 13 | */ | ||
| 14 | interface RetryableException extends Throwable | ||
| 15 | { | ||
| 16 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php b/vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php deleted file mode 100644 index 1d7260e..0000000 --- a/vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\ConnectionException; | ||
| 8 | |||
| 9 | /** @psalm-immutable */ | ||
| 10 | final class SavepointsNotSupported extends ConnectionException | ||
| 11 | { | ||
| 12 | public static function new(): self | ||
| 13 | { | ||
| 14 | return new self('Savepoints are not supported by this driver.'); | ||
| 15 | } | ||
| 16 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php b/vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php deleted file mode 100644 index 463d95b..0000000 --- a/vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** @psalm-immutable */ | ||
| 8 | class SchemaDoesNotExist extends DatabaseObjectNotFoundException | ||
| 9 | { | ||
| 10 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/ServerException.php b/vendor/doctrine/dbal/src/Exception/ServerException.php deleted file mode 100644 index 798c2b9..0000000 --- a/vendor/doctrine/dbal/src/Exception/ServerException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Base class for all server related errors detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class ServerException extends DriverException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php b/vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php deleted file mode 100644 index 595f3b4..0000000 --- a/vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a syntax error in a statement detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class SyntaxErrorException extends ServerException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/TableExistsException.php b/vendor/doctrine/dbal/src/Exception/TableExistsException.php deleted file mode 100644 index e469e22..0000000 --- a/vendor/doctrine/dbal/src/Exception/TableExistsException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for an already existing table referenced in a statement detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class TableExistsException extends DatabaseObjectExistsException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/TableNotFoundException.php b/vendor/doctrine/dbal/src/Exception/TableNotFoundException.php deleted file mode 100644 index f029590..0000000 --- a/vendor/doctrine/dbal/src/Exception/TableNotFoundException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for an unknown table referenced in a statement detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class TableNotFoundException extends DatabaseObjectNotFoundException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php deleted file mode 100644 index ab04a29..0000000 --- a/vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Exception for a unique constraint violation detected in the driver. | ||
| 9 | * | ||
| 10 | * @psalm-immutable | ||
| 11 | */ | ||
| 12 | class UniqueConstraintViolationException extends ConstraintViolationException | ||
| 13 | { | ||
| 14 | } | ||
diff --git a/vendor/doctrine/dbal/src/Exception/UnknownDriver.php b/vendor/doctrine/dbal/src/Exception/UnknownDriver.php deleted file mode 100644 index 1fd4b3a..0000000 --- a/vendor/doctrine/dbal/src/Exception/UnknownDriver.php +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\Exception; | ||
| 6 | |||
| 7 | use function implode; | ||
| 8 | use function sprintf; | ||
| 9 | |||
| 10 | /** @psalm-immutable */ | ||
| 11 | final class UnknownDriver extends InvalidArgumentException | ||
| 12 | { | ||
| 13 | /** @param string[] $knownDrivers */ | ||
| 14 | public static function new(string $unknownDriverName, array $knownDrivers): self | ||
| 15 | { | ||
| 16 | return new self( | ||
| 17 | sprintf( | ||
| 18 | 'The given driver "%s" is unknown, Doctrine currently supports only the following drivers: %s', | ||
| 19 | $unknownDriverName, | ||
| 20 | implode(', ', $knownDrivers), | ||
| 21 | ), | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | } | ||
