mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
26 lines
472 B
PHP
Executable File
26 lines
472 B
PHP
Executable File
<?php
|
|
|
|
namespace Doctrine\DBAL\Exception;
|
|
|
|
use Doctrine\DBAL\Exception;
|
|
|
|
use function sprintf;
|
|
|
|
/**
|
|
* @internal
|
|
*
|
|
* @psalm-immutable
|
|
*/
|
|
final class NoKeyValue extends Exception
|
|
{
|
|
public static function fromColumnCount(int $columnCount): self
|
|
{
|
|
return new self(
|
|
sprintf(
|
|
'Fetching as key-value pairs requires the result to contain at least 2 columns, %d given.',
|
|
$columnCount
|
|
)
|
|
);
|
|
}
|
|
}
|