Вход Регистрация
Файл: vendor/spatie/flare-client-php/src/Http/Exceptions/BadResponse.php
Строк: 26
<?php

namespace SpatieFlareClientHttpExceptions;

use 
Exception;
use 
SpatieFlareClientHttpResponse;

class 
BadResponse extends Exception
{
    public 
Response $response;

    public static function 
createForResponse(Response $response): self
    
{
        
$exception = new self("Could not perform request because: {$response->getError()}");

        
$exception->response $response;

        return 
$exception;
    }
}
Онлайн: 1
Реклама