Bug 200979 BIRT Cross tab - Better error messages
In general the error messages are very generic - either "Cube does not exist" followed by stack trace or - stack trace. From the error message it is difficult to fix the problem in the report design. I have attached a couple of report design, in which case the error messages are so difficult to follow. We need to show user friendly error messages. ( This bug applies to data engine errors and engine errors ).
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/facttable/FactTableAccessor.java
documentObjectManager.closeAll( );
		documentManager.flush( );
		return new FactTable( factTableName,
				documentManager,
				dimensionInfo,
				measureInfo,
				segmentCount,
				subDimensions);
		
	}
	private int[][][] getColumnIndex( String[][] keyColumnNames,
			Dimension[] dimensions ) throws DataException
	{
		int[][][] columnIndex = new int[keyColumnNames.length][][];
		for ( int i = 0; i < keyColumnNames.length; i++ )
		{
			columnIndex[i] = new int[keyColumnNames[i].length][];
			ILevel[] levels = dimensions[i].getHierarchy( ).getLevels( );
			for ( int j = 0; j < keyColumnNames[i].length; j++ )
			{
				columnIndex[i][j] = new int[3];
				columnIndex[i][j][0] = -1;
				for( int k = 0; k < levels.length; k++ )
				{
					String[] columns = levels[k].getKeyNames( );
					int index = find( columns, keyColumnNames[i][j] );
					if( index >= 0 )
					{
						
						columnIndex[i][j][0] = 0;