/** * 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); }
/** * @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'); }