/**
* @param \Elastica\Bulk\ResponseSet $responseSet
*/
protected function _init(ResponseSet $responseSet)
{
$this->_responseSet = $responseSet;
foreach ($responseSet->getBulkResponses() as $bulkResponse) {
if ($bulkResponse->hasError()) {
$this->_actionExceptions[] = new ActionException($bulkResponse);
}
}
}