blob: fc36a9b90d053bf021d115405d0a92dfa9edf724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Exception;
use Doctrine\DBAL\Exception;
use function sprintf;
/** @psalm-immutable */
class DatabaseRequired extends \Exception implements Exception
{
public static function new(string $methodName): self
{
return new self(
sprintf(
'A database is required for the method: %s.',
$methodName,
),
);
}
}
|