\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

$_request

$_request : \Elastica\Request|null

Type

\Elastica\Request|null — Request object

$_response

$_response : \Elastica\Response|null

Type

\Elastica\Response|null — Response object

$_error

$_error : integer

Error code / message.

Type

integer — Error code / message

Methods

__construct()

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

Construct Exception.

Parameters

integer $error
\Elastica\Request $request
\Elastica\Response $response

getRequest()

getRequest() : \Elastica\Request|null

Returns request object.

Returns

\Elastica\Request|null —

Request object

getResponse()

getResponse() : \Elastica\Response|null

Returns response object.

Returns

\Elastica\Response|null —

Response object

getErrorMessage()

getErrorMessage(integer  $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

integer $error

Error code

Returns

string —

Error message

getError()

getError() : integer

Return Error code / message.

Returns

integer —

Error code / message