OpenXE/classes/Components/HttpClient/Exception/ConnectionFailedException.php
2021-05-21 08:49:41 +02:00

32 lines
536 B
PHP

<?php
declare(strict_types=1);
namespace Xentral\Components\HttpClient\Exception;
use Xentral\Components\HttpClient\Response\ServerResponseInterface;
/**
* HTTP connect failed, e.g. timeout
*
* Response is not available
*/
class ConnectionFailedException extends TransferErrorException
{
/**
* @inheritDoc
*/
public function hasResponse(): bool
{
return false;
}
/**
* @inheritDoc
*/
public function getResponse(): ?ServerResponseInterface
{
return null;
}
}