/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Routing/Exceptions/StreamedResponseException.php
49 строк
981 B
Andrew Brown
[12.x] remove `@return` docblocks on constructors (#55076)
19 мар 2025, 23:10
Не верифицирован
19 мар 2025, 23:10
8f0e00b
Код
Авторство
О чём код?
<?php namespace Illuminate\Routing\Exceptions; use Illuminate\Http\Response; use RuntimeException; use Throwable; class StreamedResponseException extends RuntimeException { /** * The actual exception thrown during the stream. * * @var \Throwable */ public $originalException; /** * Create a new exception instance. * * @param \Throwable $originalException */ public function __construct(Throwable $originalException) { $this->originalException = $originalException; parent::__construct($originalException->getMessage()); } /** * Render the exception. * * @return \Illuminate\Http\Response */ public function render() { return new Response(''); } /** * Get the actual exception thrown during the stream. * * @return \Throwable */ public function getInnerException() { return $this->originalException; } }