summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Driver/Exception/NoIdentityValue.php
blob: decbbd5894991dfe62fb1695c45a036dc6389b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Driver\Exception;

use Doctrine\DBAL\Driver\AbstractException;
use Throwable;

/**
 * @internal
 *
 * @psalm-immutable
 */
final class NoIdentityValue extends AbstractException
{
    public static function new(?Throwable $previous = null): self
    {
        return new self('No identity value was generated by the last statement.', null, 0, $previous);
    }
}