| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\GuzzleHttp\Exception; |
| 4 |
|
| 5 |
use Dudlewebs\WPMCS\s3\Psr\Http\Message\RequestInterface; |
| 6 |
/** |
| 7 |
* Exception thrown when a connection cannot be established. |
| 8 |
* |
| 9 |
* Note that no response is present for a ConnectException |
| 10 |
*/ |
| 11 |
class ConnectException extends RequestException |
| 12 |
{ |
| 13 |
public function __construct($message, RequestInterface $request, \Exception $previous = null, array $handlerContext = []) |
| 14 |
{ |
| 15 |
parent::__construct($message, $request, null, $previous, $handlerContext); |
| 16 |
} |
| 17 |
/** |
| 18 |
* @return null |
| 19 |
*/ |
| 20 |
public function getResponse() |
| 21 |
{ |
| 22 |
return null; |
| 23 |
} |
| 24 |
/** |
| 25 |
* @return bool |
| 26 |
*/ |
| 27 |
public function hasResponse() |
| 28 |
{ |
| 29 |
return \false; |
| 30 |
} |
| 31 |
} |
| 32 |
|