Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
if ( cd.isSetTransparency( ) && cd.getTransparency( ) == 0 )
			{
				return;
			}
			final Color cBG = (Color) _ids.getColor( cd );
			final Color cPreviousBG = _gc.getBackground( );
			_gc.setBackground( cBG );
			R31Enhance.setAlpha( _gc, cd );
			_gc.fillRectangle( r );
			cBG.dispose( );
			_gc.setBackground( cPreviousBG );
		}
		else if ( flBackground instanceof Gradient )
		{
			final Gradient g = (Gradient) flBackground;
			final ColorDefinition cdStart = g.getStartColor( );
			final ColorDefinition cdEnd = g.getEndColor( );
			double dAngleInDegrees = g.getDirection( );
			if ( dAngleInDegrees < -90 || dAngleInDegrees > 90 )
			{
				throw new ChartException( ChartDeviceSwtActivator.ID,
						ChartException.RENDERING,
						"SwtRendererImpl.exception.gradient.angle", 
						new Object[]{
							new Double( dAngleInDegrees )
						},
						Messages.getResourceBundle( getULocale( ) ) );
			}
			final Color cPreviousFG = _gc.getForeground( );