/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Tui/Exception/RenderException.php
48 строк
1 KB
Fabien Potencier
[Tui] Add the component
29 апр 2026, 11:20
29 апр 2026, 11:20
a818679
Код
Авторство
О чём код?
<?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\Tui\Exception; /** * Exception thrown when rendering fails. * * Typically thrown when a component renders a line that exceeds the terminal width. * * @experimental * * @author Fabien Potencier <fabien@symfony.com> */ class RenderException extends RuntimeException { public function __construct( string $message, private readonly int $lineNumber = 0, private readonly int $lineWidth = 0, private readonly int $terminalWidth = 0, ) { parent::__construct($message); } public function getLineNumber(): int { return $this->lineNumber; } public function getLineWidth(): int { return $this->lineWidth; } public function getTerminalWidth(): int { return $this->terminalWidth; } }