Beispiel #1
0
 /**
  * Construct Exception
  *
  * @param string            $error    Error
  * @param Elastica_Request  $request
  * @param Elastica_Response $response
  */
 public function __construct($error, Elastica_Request $request = null, Elastica_Response $response = null)
 {
     $this->_error = $error;
     $this->_request = $request;
     $this->_response = $response;
     $message = $this->getErrorMessage($this->getError());
     parent::__construct($message);
 }
Beispiel #2
0
 /**
  * @param Elastica_Response $response
  */
 public function __construct(Elastica_Response $response)
 {
     $this->_response = $response;
     parent::__construct($response->getError());
 }
 /**
  * Construct Exception
  * 
  * @param Elastica_Response $response
  */
 public function __construct(Elastica_Response $response)
 {
     $this->_response = $response;
     parent::__construct('Error in one or more bulk request actions');
 }