include/SugarSearchEngine/Elastic/Elastica/Exception/Client.php

Show: inherited
Table of Contents

Client exception

Author
Nicolas Ruflin  
Category
Xodoa  
Package
Elastica  

\Elastica_Exception_Client

Package: Elastica

Client exception

Parent(s)
\Elastica_Exception_Abstract < \Exception
Author
Nicolas Ruflin  
Category
Xodoa  

Properties

Propertyprotected  $_error= '0'
Default value0Details
Type
n/a
Propertyprotected  $_request= 'null'
Default valuenullDetails
Type
n/a
Propertyprotected  $_response= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__construct( string $error, \Elastica_Transport_Abstract $request = null, \Elastica_Response $response = null ) : void

Parameters
Name Type Description
$error string

Error

$request \Elastica_Transport_Abstract
$response \Elastica_Response
methodpublicgetError( ) : string

Returns
Type Description
string Error code / message
methodpublicgetErrorMessage( 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
Name Type Description
$error string

Error code

Returns
Type Description
string Error message
methodpublicgetRequest( ) : \Elastica_Transport_Abstract

Returns request object

Returns
Type Description
\Elastica_Transport_Abstract Request object
methodpublicgetResponse( ) : \Elastica_Response

Returns response object

Returns
Type Description
\Elastica_Response Response object
Documentation was generated by DocBlox 0.18.1.