summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Platforms/Exception
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/dbal/src/Platforms/Exception
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/dbal/src/Platforms/Exception')
-rw-r--r--vendor/doctrine/dbal/src/Platforms/Exception/InvalidPlatformVersion.php28
-rw-r--r--vendor/doctrine/dbal/src/Platforms/Exception/NoColumnsSpecifiedForTable.php18
-rw-r--r--vendor/doctrine/dbal/src/Platforms/Exception/NotSupported.php18
-rw-r--r--vendor/doctrine/dbal/src/Platforms/Exception/PlatformException.php11
4 files changed, 75 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Platforms/Exception/InvalidPlatformVersion.php b/vendor/doctrine/dbal/src/Platforms/Exception/InvalidPlatformVersion.php
new file mode 100644
index 0000000..dd70190
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Platforms/Exception/InvalidPlatformVersion.php
@@ -0,0 +1,28 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Platforms\Exception;
6
7use Exception;
8
9use function sprintf;
10
11/** @psalm-immutable */
12final class InvalidPlatformVersion extends Exception implements PlatformException
13{
14 /**
15 * Returns a new instance for an invalid specified platform version.
16 *
17 * @param string $version The invalid platform version given.
18 * @param string $expectedFormat The expected platform version format.
19 */
20 public static function new(string $version, string $expectedFormat): self
21 {
22 return new self(sprintf(
23 'Invalid platform version "%s" specified. The platform version has to be specified in the format: "%s".',
24 $version,
25 $expectedFormat,
26 ));
27 }
28}
diff --git a/vendor/doctrine/dbal/src/Platforms/Exception/NoColumnsSpecifiedForTable.php b/vendor/doctrine/dbal/src/Platforms/Exception/NoColumnsSpecifiedForTable.php
new file mode 100644
index 0000000..0690eaa
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Platforms/Exception/NoColumnsSpecifiedForTable.php
@@ -0,0 +1,18 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Platforms\Exception;
6
7use LogicException;
8
9use function sprintf;
10
11/** @psalm-immutable */
12final class NoColumnsSpecifiedForTable extends LogicException implements PlatformException
13{
14 public static function new(string $tableName): self
15 {
16 return new self(sprintf('No columns specified for table "%s".', $tableName));
17 }
18}
diff --git a/vendor/doctrine/dbal/src/Platforms/Exception/NotSupported.php b/vendor/doctrine/dbal/src/Platforms/Exception/NotSupported.php
new file mode 100644
index 0000000..4ab6fc9
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Platforms/Exception/NotSupported.php
@@ -0,0 +1,18 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Platforms\Exception;
6
7use LogicException;
8
9use function sprintf;
10
11/** @psalm-immutable */
12final class NotSupported extends LogicException implements PlatformException
13{
14 public static function new(string $method): self
15 {
16 return new self(sprintf('Operation "%s" is not supported by platform.', $method));
17 }
18}
diff --git a/vendor/doctrine/dbal/src/Platforms/Exception/PlatformException.php b/vendor/doctrine/dbal/src/Platforms/Exception/PlatformException.php
new file mode 100644
index 0000000..be546f5
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Platforms/Exception/PlatformException.php
@@ -0,0 +1,11 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Platforms\Exception;
6
7use Doctrine\DBAL\Exception;
8
9interface PlatformException extends Exception
10{
11}