include/SugarSearchEngine/Elastic/Elastica/Exception/Client.php
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
Methods

__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 |

getErrorMessage(
string $error
)
:
stringReturns 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
Returns
| Name | Type | Description |
|---|---|---|
| $error | string | Error code |
| Type | Description |
|---|---|
| string | Error message |

getRequest(
)
:
\Elastica_Transport_AbstractReturns request object
Returns
| Type | Description |
|---|---|
| \Elastica_Transport_Abstract | Request object |

getResponse(
)
:
\Elastica_ResponseReturns response object
Returns
| Type | Description |
|---|---|
| \Elastica_Response | Response object |