User: vg      
Date: 2008-08-19 10:02:06+0000
Modified:
   dba/reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java

Log:
 INTEGRATION: CWS dba31a (1.4.18); FILE MERGED
 2008/07/07 12:22:55 oj 1.4.18.1: #i85664# exception handling corrected

File Changes:

Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/
==============================================================

File [changed]: StarReportDataFactory.java
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java?r1=1.4&r2=1.5
Delta lines:  +8 -2
-------------------
--- StarReportDataFactory.java  2008-05-05 13:42:41+0000        1.4
+++ StarReportDataFactory.java  2008-08-19 10:02:04+0000        1.5
@@ -75,11 +75,17 @@
     }
     catch(DataSourceException dse)
     {
-      throw new ReportDataFactoryException("Failed to create report data 
wrapper");
+        String message = dse.getMessage();
+        if ( message.length() == 0 )
+            message = "Failed to create report data wrapper";
+      throw new ReportDataFactoryException(message,dse);
     }
     catch (org.jfree.report.DataSourceException e)
     {
-      throw new ReportDataFactoryException("Failed to query data");
+        String message = e.getMessage();
+        if ( message.length() == 0 )
+            message = "Failed to query data";
+      throw new ReportDataFactoryException(message);
     }
   }
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to