diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 09:02:04 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 09:02:04 +0000 |
commit | 94025a2adab08aaace7ea5a3cff53414aa99a879 (patch) | |
tree | b94ec9502483ac7c0a978e969d961876f189c7d2 /reportdesign/java | |
parent | 40ceb0faacb5b8f1ef3ccc028598365ec5f8ee8d (diff) |
INTEGRATION: CWS dba31a (1.4.18); FILE MERGED
2008/07/07 12:22:55 oj 1.4.18.1: #i85664# exception handling corrected
Diffstat (limited to 'reportdesign/java')
-rw-r--r-- | reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java b/reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java index 5c8304d8df71..2a3600213d6c 100644 --- a/reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java +++ b/reportdesign/java/com/sun/star/report/pentaho/StarReportDataFactory.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: StarReportDataFactory.java,v $ - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -75,11 +75,17 @@ public class StarReportDataFactory implements ReportDataFactory, Cloneable } 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); } } |