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

declare(strict_types=1);

namespace Doctrine\ORM;

use Doctrine\ORM\Exception\ORMException;
use RuntimeException;

class PessimisticLockException extends RuntimeException implements ORMException
{
    public static function lockFailed(): self
    {
        return new self('The pessimistic lock failed.');
    }
}