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

declare(strict_types=1);

namespace Doctrine\DBAL\Schema\Exception;

use Doctrine\DBAL\Schema\SchemaException;
use LogicException;

use function sprintf;

/** @psalm-immutable */
final class TableDoesNotExist extends LogicException implements SchemaException
{
    public static function new(string $tableName): self
    {
        return new self(sprintf('There is no table with name "%s" in the schema.', $tableName));
    }
}