summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php')
-rw-r--r--vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php b/vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php
new file mode 100644
index 0000000..decbbd5
--- /dev/null
+++ b/vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php
@@ -0,0 +1,21 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\DBAL\Driver\Exception;
6
7use Doctrine\DBAL\Driver\AbstractException;
8use Throwable;
9
10/**
11 * @internal
12 *
13 * @psalm-immutable
14 */
15final class NoIdentityValue extends AbstractException
16{
17 public static function new(?Throwable $previous = null): self
18 {
19 return new self('No identity value was generated by the last statement.', null, 0, $previous);
20 }
21}