Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Http/Exceptions/HttpResponseException.php
Строк: 69
<?php

namespace IlluminateHttpExceptions;

use 
RuntimeException;
use 
SymfonyComponentHttpFoundationResponse;
use 
Throwable;

class 
HttpResponseException extends RuntimeException
{
    
/**
     * The underlying response instance.
     *
     * @var SymfonyComponentHttpFoundationResponse
     */
    
protected $response;

    
/**
     * Create a new HTTP response exception instance.
     *
     * @param  SymfonyComponentHttpFoundationResponse  $response
     * @param  Throwable  $previous
     * @return void
     */
    
public function __construct(Response $response, ?Throwable $previous null)
    {
        
parent::__construct($previous?->getMessage() ?? ''$previous?->getCode() ?? 0$previous);

        
$this->response $response;
    }

    
/**
     * Get the underlying response instance.
     *
     * @return SymfonyComponentHttpFoundationResponse
     */
    
public function getResponse()
    {
        return 
$this->response;
    }
}
Онлайн: 0
Реклама