You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
726 B

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