Open Journal Systems  3.3.0
GuzzleHttp\Exception\ConnectException Class Reference
Inheritance diagram for GuzzleHttp\Exception\ConnectException:
GuzzleHttp\Exception\RequestException GuzzleHttp\Exception\TransferException

Public Member Functions

 __construct ( $message, RequestInterface $request, \Exception $previous=null, array $handlerContext=[])
 
 getResponse ()
 
 hasResponse ()
 
- Public Member Functions inherited from GuzzleHttp\Exception\RequestException
 __construct ( $message, RequestInterface $request, ResponseInterface $response=null, \Exception $previous=null, array $handlerContext=[])
 
 getHandlerContext ()
 
 getRequest ()
 

Additional Inherited Members

- Static Public Member Functions inherited from GuzzleHttp\Exception\RequestException
static create (RequestInterface $request, ResponseInterface $response=null, \Exception $previous=null, array $ctx=[])
 
static getResponseBodySummary (ResponseInterface $response)
 
static wrapException (RequestInterface $request, \Exception $e)
 

Detailed Description

Exception thrown when a connection cannot be established.

Note that no response is present for a ConnectException

Definition at line 11 of file ConnectException.php.

Constructor & Destructor Documentation

◆ __construct()

GuzzleHttp\Exception\ConnectException::__construct (   $message,
RequestInterface  $request,
\Exception  $previous = null,
array  $handlerContext = [] 
)

Definition at line 13 of file ConnectException.php.

Member Function Documentation

◆ getResponse()

GuzzleHttp\Exception\ConnectException::getResponse ( )
Returns
null

Reimplemented from GuzzleHttp\Exception\RequestException.

Definition at line 25 of file ConnectException.php.

◆ hasResponse()

GuzzleHttp\Exception\ConnectException::hasResponse ( )
Returns
bool

Reimplemented from GuzzleHttp\Exception\RequestException.

Definition at line 33 of file ConnectException.php.


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