/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/VarExporter/Exception/ClassNotFoundException.php
24 строки
699 B
Nicolas Grekas
[VarExporter] Leverage ext-deepclone when available
10 апр 2026, 23:53
10 апр 2026, 23:53
8197afa
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\VarExporter\Exception; class ClassNotFoundException extends \Exception implements ExceptionInterface { public function __construct(string|\Throwable $class, ?\Throwable $previous = null) { if ($class instanceof \Throwable) { parent::__construct($class->getMessage(), 0, $class); } else { parent::__construct(\sprintf('Class "%s" not found.', $class), 0, $previous); } } }