Class Guzzle\Http\Exception\CurlException

InheritanceGuzzle\Http\Exception\CurlException » Guzzle\Http\Exception\RequestException » Guzzle\Common\Exception\RuntimeException » RuntimeException
ImplementsGuzzle\Common\Exception\GuzzleException, Guzzle\Http\Exception\HttpException

CURL request exception

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getCurlHandle() Get the associated cURL handle Guzzle\Http\Exception\CurlException
getCurlInfo() Returns curl information about the transfer Guzzle\Http\Exception\CurlException
getError() Get the associated cURL error message Guzzle\Http\Exception\CurlException
getErrorNo() Get the associated cURL error number Guzzle\Http\Exception\CurlException
getRequest() Get the request that caused the exception Guzzle\Http\Exception\RequestException
setCurlHandle() Set the associated curl handle Guzzle\Http\Exception\CurlException
setCurlInfo() Set curl transfer information Guzzle\Http\Exception\CurlException
setError() Set the cURL error message Guzzle\Http\Exception\CurlException
setRequest() Set the request that caused the exception Guzzle\Http\Exception\RequestException

Method Details

getCurlHandle() public method

Get the associated cURL handle

public Guzzle\Http\Curl\CurlHandle|null getCurlHandle ( )
getCurlInfo() public method

Returns curl information about the transfer

public array getCurlInfo ( )
getError() public method

Get the associated cURL error message

public string|null getError ( )
getErrorNo() public method

Get the associated cURL error number

public int|null getErrorNo ( )
setCurlHandle() public method

Set the associated curl handle

public self setCurlHandle ( Guzzle\Http\Curl\CurlHandle $handle )
$handle Guzzle\Http\Curl\CurlHandle

Curl handle

setCurlInfo() public method

Set curl transfer information

public self setCurlInfo ( array $info )
$info array

Array of curl transfer information

setError() public method

Set the cURL error message

public self setError ( $error, $number )
$error string

Curl error

$number int

Curl error number