summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Exception/NoActiveTransaction.php
blob: a8d19c50f5c67c87b6459dd52f4bb068bc1d1c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Exception;

use Doctrine\DBAL\ConnectionException;

/** @psalm-immutable */
final class NoActiveTransaction extends ConnectionException
{
    public static function new(): self
    {
        return new self('There is no active transaction.');
    }
}