PHP Class Elastica\Exception\ResponseException

Author: Nicolas Ruflin ([email protected])
Inheritance: extends RuntimeException, implements ExceptionInterface
显示文件 Open project: ruflin/elastica Class Usage Examples

Protected Properties

Property Type Description
$_request Request object
$_response Response object

Public Methods

Method Description
__construct ( Request $request, Response $response ) Construct Exception.
getElasticsearchException ( ) : ElasticsearchException Returns elasticsearch exception.
getRequest ( ) : Request Returns request object.
getResponse ( ) : Response Returns response object.

Method Details

__construct() public method

Construct Exception.
public __construct ( Request $request, Response $response )
$request Elastica\Request
$response Elastica\Response

getElasticsearchException() public method

Returns elasticsearch exception.
public getElasticsearchException ( ) : ElasticsearchException
return ElasticsearchException

getRequest() public method

Returns request object.
public getRequest ( ) : Request
return Elastica\Request Request object

getResponse() public method

Returns response object.
public getResponse ( ) : Response
return Elastica\Response Response object

Property Details

$_request protected_oe property

Request object
protected $_request

$_response protected_oe property

Response object
protected $_response