/** * @param Elastica_Response $response */ public function __construct(Elastica_Response $response) { $this->_response = $response; parent::__construct($response->getError()); }