writer.writeCode( rc.getMessage( MessageConstants.REPORT_ERROR_ID, new Object[]{new Integer( i ), ex.getErrorCode( ), countList.get( i )} ) + (char) Character.LINE_SEPARATOR + rc.getMessage( MessageConstants.REPORT_ERROR_DETAIL ) + getDetailMessage( ex ) );
String messageTitle = rc.getMessage( MessageConstants.REPORT_ERROR_ID, new Object[]{ new Integer( i ), ex.getErrorCode( ), countList.get( i )} ); String detailTag = rc .getMessage( MessageConstants.REPORT_ERROR_DETAIL ); String messageBody = getDetailMessage( ex ); boolean indent = writer.isIndent( ); writer.setIndent( false ); writer.writeCode( messageTitle ); writer.writeCode( "\r\n" ); writer.writeCode( detailTag ); writer.writeCode( messageBody ); writer.setIndent( indent );
	private void appendErrorMessage( int index, ElementExceptionInfo info )	{		EngineResourceHandle rc = EngineResourceHandle.getInstance( );		writer.writeCode( "			<div>" );		writer.writeCode( "				<span id=\"error_icon" + index				+ "\"  style=\"cursor:pointer\" onclick=\"expand(" + index				+ ")\" > + </span>" );		writer.writeCode( "				<span  id=\"error_title\">"				+ rc.getMessage( MessageConstants.REPORT_ERROR_MESSAGE,						new Object[]{info.getType( ), info.getElementInfo( )} )				+ "</span>" );		writer.writeCode( "				<pre id=\"error_detail" + index				+ "\" style=\"display:block\" >" );		ArrayList errorList = info.getErrorList( );		ArrayList countList = info.getCountList( );		for ( int i = 0; i < errorList.size( ); i++ )		{			BirtException ex = (BirtException) errorList.get( i );			writer.writeCode( rc.getMessage( MessageConstants.REPORT_ERROR_ID,					new Object[]{new Integer( i ), ex.getErrorCode( ),							countList.get( i )} )					+ (char) Character.LINE_SEPARATOR					+ rc.getMessage( MessageConstants.REPORT_ERROR_DETAIL )					+ getDetailMessage( ex ) ); //$NON-NLS-1$		}		writer.writeCode( "				</pre>" );		writer.writeCode( "		</div>" ); //$NON-NLS-1$	}