Code example for SQLException

Methods: toString

0
                // plus saved login information like host,port,db name .. 
                // and then connect 
		db = MysqlDatabase.getInstance();
                db.connect();
	} catch (SQLException e) {
		Error_Frame.Error(e.toString());
	} catch (Exception e) {
		Error_Frame.Error(e.toString());
	} 
	return db;
    }   
}