PHP Class Elastica\Exception\Bulk\ResponseException

Inheritance: extends Elastica\Exception\BulkException
Show file Open project: ruflin/elastica Class Usage Examples

Protected Properties

Property Type Description
$_actionExceptions Elastica\Exception\Bulk\Response\ActionException[]
$_responseSet ResponseSet object

Public Methods

Method Description
__construct ( ResponseSet $responseSet ) Construct Exception.
getActionExceptions ( ) : Elastica\Exception\Bulk\Response\ActionException[]
getActionExceptionsAsString ( ) : string
getFailures ( ) : array Returns array of failed actions.
getResponseSet ( ) : ResponseSet Returns bulk response set object.

Protected Methods

Method Description
_init ( ResponseSet $responseSet )

Method Details

__construct() public method

Construct Exception.
public __construct ( ResponseSet $responseSet )
$responseSet Elastica\Bulk\ResponseSet

_init() protected method

protected _init ( ResponseSet $responseSet )
$responseSet Elastica\Bulk\ResponseSet

getActionExceptions() public method

public getActionExceptions ( ) : Elastica\Exception\Bulk\Response\ActionException[]
return Elastica\Exception\Bulk\Response\ActionException[]

getActionExceptionsAsString() public method

getFailures() public method

Returns array of failed actions.
public getFailures ( ) : array
return array Array of failed actions

getResponseSet() public method

Returns bulk response set object.
public getResponseSet ( ) : ResponseSet
return Elastica\Bulk\ResponseSet

Property Details

$_actionExceptions protected property

protected ActionException[],Elastica\Exception\Bulk\Response $_actionExceptions
return Elastica\Exception\Bulk\Response\ActionException[]

$_responseSet protected property

ResponseSet object
protected $_responseSet