protected function _connect() { if ($this->_connection) { return; } try { parent::_connect(); } catch (Zend_Db_Adapter_Mysqli_Exception $e) { if (!is_null($this->_connectionErrorHandler)) { $f = $this->_connectionErrorHandler; $f($e); } throw $e; } }