Exception thrown when a connection cannot be established.
Note that no response is present for a ConnectException
Instantiable
- Extends
Exception RuntimeException GuzzleHttp \Exception \TransferException - Implements
GuzzleHttp \Exception \GuzzleException Psr\Http\Client\ClientExceptionInterface Psr\Http\Client\NetworkExceptionInterface Stringable Throwable
Methods |
public __construct(string $message, Psr\Http\Message\RequestInterface $request, ?Throwable $previous = NULL, array $handlerContext = []) |
public getHandlerContext() : array Get contextual information about the error from the underlying handler. The contents of this array will vary depending on which handler you are using. It may also be just an empty array. Relying on this data will couple you to a specific handler, but can give more debug information when needed. |
public getRequest() : Psr\Http\Message\RequestInterface Get the request that caused the exception |
Properties |
Properties |
private $handlerContext = NULL
|
private $request = NULL
|