\Elastica\Exception\ConnectionHttpException

Connection exception.

Summary

Methods
Properties
Constants
__construct()
getRequest()
getResponse()
getErrorMessage()
getError()
No public properties found
No constants found
No protected methods found
$_request
$_response
$_error
N/A
No private methods found
No private properties found
N/A

Properties

$_error

$_error : string

Error code / message.

Type

string — Error code / message

Methods

__construct()

__construct(string  $error, \Elastica\Request  $request = null, \Elastica\Response  $response = null) 

Construct Exception.

Parameters

string $error

Error

\Elastica\Request $request
\Elastica\Response $response

getRequest()

getRequest() : \Elastica\Request

Returns request object.

Returns

\Elastica\Request

Request object

getResponse()

getResponse() : \Elastica\Response

Returns response object.

Returns

\Elastica\Response

Response object

getErrorMessage()

getErrorMessage(string  $error) : string

Returns the error message corresponding to the error code cUrl error code reference can be found here {@link http://curl.haxx.se/libcurl/c/libcurl-errors.html}.

Parameters

string $error

Error code

Returns

string —

Error message

getError()

getError() : string

Return Error code / message.

Returns

string —

Error code / message