$request
$request : \Psr\Http\Message\RequestInterface
Exception thrown when a connection cannot be established.
Note that no response is present for a ConnectException
$request : \Psr\Http\Message\RequestInterface
$handlerContext : array
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.