summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Exception')
-rw-r--r--vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php16
-rw-r--r--vendor/doctrine/dbal/src/Exception/ConnectionException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/ConnectionLost.php10
-rw-r--r--vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php10
-rw-r--r--vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php18
-rw-r--r--vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php18
-rw-r--r--vendor/doctrine/dbal/src/Exception/DatabaseRequired.php23
-rw-r--r--vendor/doctrine/dbal/src/Exception/DeadlockException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/DriverException.php51
-rw-r--r--vendor/doctrine/dbal/src/Exception/DriverRequired.php30
-rw-r--r--vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php16
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidColumnDeclaration.php19
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidColumnType.php13
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnLengthRequired.php34
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnPrecisionRequired.php20
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnScaleRequired.php20
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php24
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php24
-rw-r--r--vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/MalformedDsnException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/NoActiveTransaction.php16
-rw-r--r--vendor/doctrine/dbal/src/Exception/NoKeyValue.php27
-rw-r--r--vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/ReadOnlyException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/RetryableException.php16
-rw-r--r--vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php16
-rw-r--r--vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php10
-rw-r--r--vendor/doctrine/dbal/src/Exception/ServerException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/TableExistsException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/TableNotFoundException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php14
-rw-r--r--vendor/doctrine/dbal/src/Exception/UnknownDriver.php24
37 files changed, 665 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php b/vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php
new file mode 100644
index 0000000..b49fd0c
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/CommitFailedRollbackOnly.php
@@ -0,0 +1,16 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\ConnectionException;
8
9/** @psalm-immutable */
10final 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
new file mode 100644
index 0000000..673475d
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/ConnectionException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Base class for all connection related errors detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class ConnectionException extends DriverException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/ConnectionLost.php b/vendor/doctrine/dbal/src/Exception/ConnectionLost.php
new file mode 100644
index 0000000..eda8db1
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/ConnectionLost.php
@@ -0,0 +1,10 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/** @psalm-immutable */
8final class ConnectionLost extends ConnectionException
9{
10}
diff --git a/vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php
new file mode 100644
index 0000000..13a3250
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/ConstraintViolationException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Base class for all constraint violation related errors detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class ConstraintViolationException extends ServerException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php b/vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php
new file mode 100644
index 0000000..d569d78
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DatabaseDoesNotExist.php
@@ -0,0 +1,10 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/** @psalm-immutable */
8class DatabaseDoesNotExist extends DatabaseObjectNotFoundException
9{
10}
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php b/vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php
new file mode 100644
index 0000000..b336015
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DatabaseObjectExistsException.php
@@ -0,0 +1,18 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
16class DatabaseObjectExistsException extends ServerException
17{
18}
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php b/vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php
new file mode 100644
index 0000000..d12dfff
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DatabaseObjectNotFoundException.php
@@ -0,0 +1,18 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
16class DatabaseObjectNotFoundException extends ServerException
17{
18}
diff --git a/vendor/doctrine/dbal/src/Exception/DatabaseRequired.php b/vendor/doctrine/dbal/src/Exception/DatabaseRequired.php
new file mode 100644
index 0000000..fc36a9b
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DatabaseRequired.php
@@ -0,0 +1,23 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Exception;
8
9use function sprintf;
10
11/** @psalm-immutable */
12class 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
new file mode 100644
index 0000000..9000387
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DeadlockException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Exception for a deadlock error of a transaction detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class 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
new file mode 100644
index 0000000..d794d77
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DriverException.php
@@ -0,0 +1,51 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Driver;
8use Doctrine\DBAL\Exception;
9use Doctrine\DBAL\Query;
10
11use function assert;
12
13/**
14 * Base class for all errors detected in the driver.
15 *
16 * @psalm-immutable
17 */
18class 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
new file mode 100644
index 0000000..e37ac68
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/DriverRequired.php
@@ -0,0 +1,30 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use function sprintf;
8
9/** @psalm-immutable */
10final 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
new file mode 100644
index 0000000..22531ec
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/ForeignKeyConstraintViolationException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Exception for a foreign key constraint violation detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class ForeignKeyConstraintViolationException extends ConstraintViolationException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php b/vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php
new file mode 100644
index 0000000..7b7cd3d
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidArgumentException.php
@@ -0,0 +1,16 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Exception;
8
9/**
10 * Exception to be thrown when invalid arguments are passed to any DBAL API
11 *
12 * @psalm-immutable
13 */
14class 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
new file mode 100644
index 0000000..c177611
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidColumnDeclaration.php
@@ -0,0 +1,19 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Exception;
8use LogicException;
9
10use function sprintf;
11
12/** @psalm-immutable */
13final 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
new file mode 100644
index 0000000..6c3c8ec
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidColumnType.php
@@ -0,0 +1,13 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Exception;
8use LogicException;
9
10/** @psalm-immutable */
11abstract 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
new file mode 100644
index 0000000..1d5e795
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnLengthRequired.php
@@ -0,0 +1,34 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception\InvalidColumnType;
6
7use Doctrine\DBAL\Exception\InvalidColumnType;
8use Doctrine\DBAL\Platforms\AbstractPlatform;
9
10use function get_debug_type;
11use function sprintf;
12
13/**
14 * @internal
15 *
16 * @psalm-immutable
17 */
18final 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
new file mode 100644
index 0000000..8898cd0
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnPrecisionRequired.php
@@ -0,0 +1,20 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception\InvalidColumnType;
6
7use Doctrine\DBAL\Exception\InvalidColumnType;
8
9/**
10 * @internal
11 *
12 * @psalm-immutable
13 */
14final 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
new file mode 100644
index 0000000..472cbc3
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidColumnType/ColumnScaleRequired.php
@@ -0,0 +1,20 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception\InvalidColumnType;
6
7use Doctrine\DBAL\Exception\InvalidColumnType;
8
9/**
10 * @internal
11 *
12 * @psalm-immutable
13 */
14final 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
new file mode 100644
index 0000000..2ebfd87
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidDriverClass.php
@@ -0,0 +1,24 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Driver;
8
9use function sprintf;
10
11/** @psalm-immutable */
12final 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
new file mode 100644
index 0000000..e5bfcee
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidFieldNameException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
12class InvalidFieldNameException extends ServerException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php b/vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php
new file mode 100644
index 0000000..2cbe82a
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/InvalidWrapperClass.php
@@ -0,0 +1,24 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Connection;
8
9use function sprintf;
10
11/** @psalm-immutable */
12final 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
new file mode 100644
index 0000000..2e81580
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/LockWaitTimeoutException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
12class 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
new file mode 100644
index 0000000..eb3056c
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/MalformedDsnException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/** @psalm-immutable */
8class 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
new file mode 100644
index 0000000..a8d19c5
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/NoActiveTransaction.php
@@ -0,0 +1,16 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\ConnectionException;
8
9/** @psalm-immutable */
10final 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
new file mode 100644
index 0000000..5cea11d
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/NoKeyValue.php
@@ -0,0 +1,27 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\Exception;
8
9use function sprintf;
10
11/**
12 * @internal
13 *
14 * @psalm-immutable
15 */
16final 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
new file mode 100644
index 0000000..96a8582
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/NonUniqueFieldNameException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
12class NonUniqueFieldNameException extends ServerException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php
new file mode 100644
index 0000000..4c2a7be
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/NotNullConstraintViolationException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Exception for a NOT NULL constraint violation detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class NotNullConstraintViolationException extends ConstraintViolationException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/ReadOnlyException.php b/vendor/doctrine/dbal/src/Exception/ReadOnlyException.php
new file mode 100644
index 0000000..73fa5b1
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/ReadOnlyException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
12class ReadOnlyException extends ServerException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/RetryableException.php b/vendor/doctrine/dbal/src/Exception/RetryableException.php
new file mode 100644
index 0000000..7ed6cf2
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/RetryableException.php
@@ -0,0 +1,16 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Throwable;
8
9/**
10 * Marker interface for all exceptions where retrying the transaction makes sense.
11 *
12 * @psalm-immutable
13 */
14interface RetryableException extends Throwable
15{
16}
diff --git a/vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php b/vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php
new file mode 100644
index 0000000..1d7260e
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/SavepointsNotSupported.php
@@ -0,0 +1,16 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use Doctrine\DBAL\ConnectionException;
8
9/** @psalm-immutable */
10final 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
new file mode 100644
index 0000000..463d95b
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/SchemaDoesNotExist.php
@@ -0,0 +1,10 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/** @psalm-immutable */
8class SchemaDoesNotExist extends DatabaseObjectNotFoundException
9{
10}
diff --git a/vendor/doctrine/dbal/src/Exception/ServerException.php b/vendor/doctrine/dbal/src/Exception/ServerException.php
new file mode 100644
index 0000000..798c2b9
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/ServerException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Base class for all server related errors detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class ServerException extends DriverException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php b/vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php
new file mode 100644
index 0000000..595f3b4
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/SyntaxErrorException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Exception for a syntax error in a statement detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class SyntaxErrorException extends ServerException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/TableExistsException.php b/vendor/doctrine/dbal/src/Exception/TableExistsException.php
new file mode 100644
index 0000000..e469e22
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/TableExistsException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace 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 */
12class TableExistsException extends DatabaseObjectExistsException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/TableNotFoundException.php b/vendor/doctrine/dbal/src/Exception/TableNotFoundException.php
new file mode 100644
index 0000000..f029590
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/TableNotFoundException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Exception for an unknown table referenced in a statement detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class TableNotFoundException extends DatabaseObjectNotFoundException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php b/vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php
new file mode 100644
index 0000000..ab04a29
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/UniqueConstraintViolationException.php
@@ -0,0 +1,14 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7/**
8 * Exception for a unique constraint violation detected in the driver.
9 *
10 * @psalm-immutable
11 */
12class UniqueConstraintViolationException extends ConstraintViolationException
13{
14}
diff --git a/vendor/doctrine/dbal/src/Exception/UnknownDriver.php b/vendor/doctrine/dbal/src/Exception/UnknownDriver.php
new file mode 100644
index 0000000..1fd4b3a
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Exception/UnknownDriver.php
@@ -0,0 +1,24 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Exception;
6
7use function implode;
8use function sprintf;
9
10/** @psalm-immutable */
11final 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}