\GuzzleHttp\ExceptionConnectException

Exception thrown when a connection cannot be established.

Note that no response is present for a ConnectException

Summary

Methods
Properties
Constants
__construct()
getRequest()
getHandlerContext()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$request
$handlerContext
N/A

Properties

$request

$request : \Psr\Http\Message\RequestInterface

Type

RequestInterface

$handlerContext

$handlerContext : array

Type

array

Methods

__construct()

__construct(string  $message, \Psr\Http\Message\RequestInterface  $request, \Throwable  $previous = null, array  $handlerContext = []) : mixed

Parameters

string $message
\Psr\Http\Message\RequestInterface $request
\Throwable $previous
array $handlerContext

Returns

mixed —

getRequest()

getRequest() : \Psr\Http\Message\RequestInterface

Get the request that caused the exception

Returns

\Psr\Http\Message\RequestInterface —

getHandlerContext()

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.

Returns

array —