Exception thrown when a connection cannot be established.

Note that no response is present for a ConnectException

Instantiable
ExtendsException
RuntimeException
GuzzleHttp\Exception\TransferException
ImplementsGuzzleHttp\Exception\GuzzleException
Psr\Http\Client\ClientExceptionInterface
Psr\Http\Client\NetworkExceptionInterface
Throwable
Methods
public __construct(string $message, Psr\Http\Message\RequestInterface $request, ?Throwable $previous = NULL, array $handlerContext = [])
public Exception::__toString()
public Exception::__wakeup()
public final Exception::getCode()
public final Exception::getFile()
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 final Exception::getLine()
public final Exception::getMessage()
public final Exception::getPrevious()
public getRequest() : Psr\Http\Message\RequestInterface
 

Get the request that caused the exception

public final Exception::getTrace()
public final Exception::getTraceAsString()
Properties
protected Exception::$code
protected Exception::$file
protected Exception::$line
protected Exception::$message
Properties
private $handlerContext
 
  • var array
private $request
 
  • var RequestInterface
Methods
private final Exception::__clone()
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only