You are here

private function GuzzleConnectionDebug::processCurlError in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 7.5 modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc \Elasticsearch\Connections\GuzzleConnectionDebug::processCurlError()
  2. 7.2 modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc \Elasticsearch\Connections\GuzzleConnectionDebug::processCurlError()

Parameters

CurlException $exception\:

1 call to GuzzleConnectionDebug::processCurlError()
GuzzleConnectionDebug::sendRequest in modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc

File

modules/elasticsearch_connector_devel/includes/GuzzleConnectionDebugging.inc, line 298

Class

GuzzleConnectionDebug

Namespace

Elasticsearch\Connections

Code

private function processCurlError(CurlException $exception) {
  $error = 'Curl error: ' . $exception
    ->getMessage();
  $this->log
    ->error($error);
  $this
    ->throwCurlException($exception
    ->getErrorNo(), $exception
    ->getError());
}