/**
  * Construct Exception
  *
  * @param \Elastica\Bulk\ResponseSet $responseSet
  */
 public function __construct(ResponseSet $responseSet)
 {
     $this->_init($responseSet);
     $message = 'Error in one or more bulk request actions:' . PHP_EOL . PHP_EOL;
     $message .= $this->getActionExceptionsAsString();
     parent::__construct($message);
 }
Example #2
0
 /**
  * @param \Elastica\Bulk\Response $response
  */
 public function __construct(Response $response)
 {
     $this->_response = $response;
     parent::__construct($this->getErrorMessage($response));
 }