OpenXE/classes/Components/HttpClient/Exception/TransferErrorExceptionInterface.php

27 lines
615 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?php
declare(strict_types=1);
namespace Xentral\Components\HttpClient\Exception;
use Xentral\Components\HttpClient\Request\ClientRequestInterface;
use Xentral\Components\HttpClient\Response\ServerResponseInterface;
interface TransferErrorExceptionInterface extends HttpClientExceptionInterface
{
/**
* @return bool
*/
public function hasResponse(): bool;
/**
* @return ServerResponseInterface|null
*/
public function getResponse(): ?ServerResponseInterface;
/**
* @return ClientRequestInterface
*/
public function getRequest(): ClientRequestInterface;
}