0 follower

Final Class Yiisoft\Yii\Http\Handler\ThrowableHandler

InheritanceYiisoft\Yii\Http\Handler\ThrowableHandler
ImplementsPsr\Http\Server\RequestHandlerInterface

Re-throws throwable.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Throwable $throwable )
$throwable Throwable

                public function __construct(
    private readonly Throwable $throwable,
) {
}

            
handle() public method

public \Psr\Http\Message\ResponseInterface handle ( \Psr\Http\Message\ServerRequestInterface $request )
$request \Psr\Http\Message\ServerRequestInterface
throws Throwable

                public function handle(ServerRequestInterface $request): ResponseInterface
{
    throw $this->throwable;
}