Cita:  
					Iniciado por abimaelrc  
  ¿Qué haz tratado de hacer?
    Una pequeña función para probar y documentar:  
 Código PHP:
    public function connect(){
 
         try{
                mysql_connect($this->getHost(), $this->getUser(), $this->getPassword());
    } catch(Exception $e){
                
       print('Catched:'.$e->getMessage());
    }
}