Elastica\Bulk\ResponseSet::getError PHP Method

getError() public method

Returns first found error.
public getError ( ) : string
return string
    public function getError()
    {
        foreach ($this->getBulkResponses() as $bulkResponse) {
            if ($bulkResponse->hasError()) {
                return $bulkResponse->getError();
            }
        }
        return '';
    }