<?php

namespace BeyondSEODeps\Doctrine\DBAL\Driver\PgSQL\Exception;

use BeyondSEODeps\Doctrine\DBAL\Driver\AbstractException;

use function sprintf;

final class UnknownParameter extends AbstractException
{
    public static function new(string $param): self
    {
        return new self(
            sprintf('Could not find parameter %s in the SQL statement', $param),
        );
    }
}
