wp-user-avatar
/
third-party
/
vendor
/
symfony
/
translation
/
Exception
/
IncompleteDsnException.php
ExceptionInterface.php
2 months ago
IncompleteDsnException.php
2 months ago
InvalidArgumentException.php
2 months ago
InvalidResourceException.php
2 months ago
LogicException.php
2 months ago
MissingRequiredOptionException.php
2 months ago
NotFoundResourceException.php
2 months ago
ProviderException.php
2 months ago
ProviderExceptionInterface.php
2 months ago
RuntimeException.php
2 months ago
UnsupportedSchemeException.php
2 months ago
IncompleteDsnException.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace ProfilePressVendor\Symfony\Component\Translation\Exception; |
| 12 | |
| 13 | class IncompleteDsnException extends InvalidArgumentException |
| 14 | { |
| 15 | public function __construct(string $message, ?string $dsn = null, ?\Throwable $previous = null) |
| 16 | { |
| 17 | if ($dsn) { |
| 18 | $message = sprintf('Invalid "%s" provider DSN: ', $dsn) . $message; |
| 19 | } |
| 20 | parent::__construct($message, 0, $previous); |
| 21 | } |
| 22 | } |
| 23 |