diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php')
-rw-r--r-- | vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php | 21 |
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 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\DBAL\Driver\Exception; | ||
6 | |||
7 | use Doctrine\DBAL\Driver\AbstractException; | ||
8 | use Throwable; | ||
9 | |||
10 | /** | ||
11 | * @internal | ||
12 | * | ||
13 | * @psalm-immutable | ||
14 | */ | ||
15 | final 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 | } | ||