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

declare(strict_types=1);

namespace Doctrine\DBAL\Platforms\Exception;

use LogicException;

use function sprintf;

/** @psalm-immutable */
final class NotSupported extends LogicException implements PlatformException
{
    public static function new(string $method): self
    {
        return new self(sprintf('Operation "%s" is not supported by platform.', $method));
    }
}