ElementExceptionInfo exInfo = (ElementExceptionInfo) elementExceptions .get( element ); if ( exInfo == null ) { exInfo = new ElementExceptionInfo( element ); reportContent.getErrors( ).add( exInfo ); elementExceptions.put( element, exInfo ); } exInfo.addException( ex );
IContent content = getContent( ); ReportItemDesign design = (ReportItemDesign) content.getGenerateBy( ); DesignElementHandle handle = design == null ? null : design.getHandle( ); addException( handle, ex );
	public void addException( DesignElementHandle element, BirtException ex )	{		ElementExceptionInfo exInfo = (ElementExceptionInfo) elementExceptions				.get( element );		if ( exInfo == null )		{			exInfo = new ElementExceptionInfo( element );			reportContent.getErrors( ).add( exInfo );			elementExceptions.put( element, exInfo );		}		exInfo.addException( ex );	}