X

Create New Item

File Folder

X

Search Results

File "BadResponse.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/flare-client-php/src/Http/Exceptions/BadResponse.php
File size: 427 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

namespace Spatie\FlareClient\Http\Exceptions;

use Exception;
use Spatie\FlareClient\Http\Response;

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;
    }
}