summaryrefslogtreecommitdiff
path: root/vendor/doctrine/dbal/src/Platforms/Exception/NoColumnsSpecifiedForTable.php
blob: 0690eaaa5dd616e0bb82dec60e43ffc3c56d9b0c (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 NoColumnsSpecifiedForTable extends LogicException implements PlatformException
{
    public static function new(string $tableName): self
    {
        return new self(sprintf('No columns specified for table "%s".', $tableName));
    }
}