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.engine/src/org/eclipse/birt/chart/event/WrappedInstruction.java
*  
	 */
	public WrappedInstruction( DeferredCache dc, PrimitiveRenderEvent pre,
			int iInstruction )
	{
		this.dc = dc;
		this.pre = pre;
		this.iInstruction = iInstruction;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	public int compareTo( Object o )
	{
		try
		{
			Bounds bo = null;
			if ( this.isModel( ) )
			{
				if ( o instanceof PrimitiveRenderEvent )
				{
					bo = ( (PrimitiveRenderEvent) o ).getBounds( );
				}
				else if ( o instanceof WrappedInstruction )
				{
					bo = ( (WrappedInstruction) o ).getBounds( );
				}
			}