Open Journal Systems  3.3.0
Guzzle\Http\Exception\CurlException Class Reference
Inheritance diagram for Guzzle\Http\Exception\CurlException:
Guzzle\Http\Exception\RequestException Guzzle\Common\Exception\RuntimeException Guzzle\Http\Exception\HttpException Guzzle\Common\Exception\GuzzleException Guzzle\Common\Exception\GuzzleException

Public Member Functions

 getCurlHandle ()
 
 getCurlInfo ()
 
 getError ()
 
 getErrorNo ()
 
 setCurlHandle (CurlHandle $handle)
 
 setCurlInfo (array $info)
 
 setError ($error, $number)
 
- Public Member Functions inherited from Guzzle\Http\Exception\RequestException
 getRequest ()
 
 setRequest (RequestInterface $request)
 

Additional Inherited Members

- Protected Attributes inherited from Guzzle\Http\Exception\RequestException
 $request
 

Detailed Description

cURL request exception

Definition at line 10 of file CurlException.php.

Member Function Documentation

◆ getCurlHandle()

Guzzle\Http\Exception\CurlException::getCurlHandle ( )

Get the associated cURL handle

Returns
CurlHandle|null

Definition at line 52 of file CurlException.php.

◆ getCurlInfo()

Guzzle\Http\Exception\CurlException::getCurlInfo ( )

Returns curl information about the transfer

Returns
array

Definition at line 82 of file CurlException.php.

Referenced by Guzzle\Tests\Http\Curl\CurlMultiTest\testCurlErrorsAreCaught().

◆ getError()

Guzzle\Http\Exception\CurlException::getError ( )

Get the associated cURL error message

Returns
string|null

Definition at line 62 of file CurlException.php.

◆ getErrorNo()

Guzzle\Http\Exception\CurlException::getErrorNo ( )

Get the associated cURL error number

Returns
int|null

Definition at line 72 of file CurlException.php.

◆ setCurlHandle()

Guzzle\Http\Exception\CurlException::setCurlHandle ( CurlHandle  $handle)

Set the associated curl handle

Parameters
CurlHandle$handleCurl handle
Returns
self

Definition at line 40 of file CurlException.php.

◆ setCurlInfo()

Guzzle\Http\Exception\CurlException::setCurlInfo ( array  $info)

Set curl transfer information

Parameters
array$infoArray of curl transfer information
Returns
self http://php.net/manual/en/function.curl-getinfo.php

Definition at line 95 of file CurlException.php.

◆ setError()

Guzzle\Http\Exception\CurlException::setError (   $error,
  $number 
)

Set the cURL error message

Parameters
string$errorCurl error
int$numberCurl error number
Returns
self

Definition at line 25 of file CurlException.php.


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