Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
GuzzleHttp\Exception\ConnectException Class Reference
Inheritance diagram for GuzzleHttp\Exception\ConnectException:
GuzzleHttp\Exception\TransferException Psr\Http\Client\NetworkExceptionInterface GuzzleHttp\Exception\GuzzleException Psr\Http\Client\ClientExceptionInterface Psr\Http\Client\ClientExceptionInterface

Public Member Functions

 __construct (string $message, RequestInterface $request, Throwable $previous=null, array $handlerContext=[])
 
 getHandlerContext ()
 Get contextual information about the error from the underlying handler.
 
 getRequest ()
 Get the request that caused the exception.
 

Member Function Documentation

◆ getHandlerContext()

GuzzleHttp\Exception\ConnectException::getHandlerContext ( )

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.

◆ getRequest()

GuzzleHttp\Exception\ConnectException::getRequest ( )

Get the request that caused the exception.

Implements Psr\Http\Client\NetworkExceptionInterface.


The documentation for this class was generated from the following file: