public function CurlException::setError

Set the cURL error message

Parameters

string $error Curl error:

int $number Curl error number:

Return value

self

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Exception/CurlException.php, line 24

Class

CurlException
cURL request exception

Namespace

Guzzle\Http\Exception

Code

public function setError($error, $number) {
  $this->curlError = $error;
  $this->curlErrorNo = $number;
  return $this;
}