NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class CurlException

cURL request exception

  Exception
  RuntimeException
  Guzzle\Common\Exception\RuntimeException implements Guzzle\Common\Exception\GuzzleException
  Guzzle\Http\Exception\RequestException implements Guzzle\Http\Exception\HttpException
  Guzzle\Http\Exception\CurlException

### Direct known subclasses

`Aws\Common\Exception\TransferException`

Namespace: Guzzle\Http\Exception
Located at Guzzle/Http/Exception/CurlException.php

## Methods summary

- `public` `setError ( string $error, int $number )`

  Set the cURL error message

- `public` `setCurlHandle ( Guzzle\Http\Curl\CurlHandle $handle )`

  Set the associated curl handle

- `public` `getCurlHandle ( )`

  Get the associated cURL handle

- `public` `getError ( )`

  Get the associated cURL error message

- `public` `getErrorNo ( )`

  Get the associated cURL error number

- `public` `getCurlInfo ( )`

  Returns curl information about the transfer

- `public` `setCurlInfo ( array $info )`

  Set curl transfer information

## Methods detail

# `public `Guzzle\Http\Exception\CurlException``
`setError( string $error, integer $number )`

Set the cURL error message

#### Parameters

$error
  `string`
  $error Curl error
$number
  `integer`
  $number Curl error number

#### Returns

``Guzzle\Http\Exception\CurlException``
# `public `Guzzle\Http\Exception\CurlException``
`setCurlHandle( `Guzzle\Http\Curl\CurlHandle` $handle )`

Set the associated curl handle

#### Parameters

$handle
  ``Guzzle\Http\Curl\CurlHandle``
  $handle Curl handle

#### Returns

``Guzzle\Http\Exception\CurlException``
# `public `Guzzle\Http\Curl\CurlHandle`|null`
`getCurlHandle( )`

Get the associated cURL handle

#### Returns

``Guzzle\Http\Curl\CurlHandle`|null`
# `public string|null`
`getError( )`

Get the associated cURL error message

#### Returns

`string|null`
# `public integer|null`
`getErrorNo( )`

Get the associated cURL error number

#### Returns

`integer|null`
# `public array`
`getCurlInfo( )`

Returns curl information about the transfer

#### Returns

`array`
# `public `Guzzle\Http\Exception\CurlException``
`setCurlInfo( array $info )`

Set curl transfer information

#### Parameters

$info
  `array`
  $info Array of curl transfer information

#### Returns

``Guzzle\Http\Exception\CurlException``

#### Link

http://php.net/manual/en/function.curl-getinfo.php

### Methods inherited from Guzzle\Http\Exception\RequestException

`getRequest()`, `setRequest()`

### Methods inherited from Exception

`__construct()`, `__toString()`, `__wakeup()`, `getCode()`, `getFile()`, `getLine()`, `getMessage()`, `getPrevious()`, `getTrace()`, `getTraceAsString()`

### Magic methods summary

## Properties summary

### Properties inherited from Guzzle\Http\Exception\RequestException

`$request`

### Properties inherited from Exception

`$code`, `$file`, `$line`, `$message`