summaryrefslogtreecommitdiff
path: root/reportbuilder/java/org/libreoffice/report/pentaho
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/org/libreoffice/report/pentaho')
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/SOReportJobFactory.java4
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/StarReportDataFactory.java4
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/StyleUtilities.java4
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java2
4 files changed, 7 insertions, 7 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/SOReportJobFactory.java b/reportbuilder/java/org/libreoffice/report/pentaho/SOReportJobFactory.java
index 4a6604659010..f6d714722657 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/SOReportJobFactory.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/SOReportJobFactory.java
@@ -216,12 +216,12 @@ public class SOReportJobFactory
catch (java.lang.Exception e)
{
LOGGER.error("ReportProcessing failed", e);
- throw new com.sun.star.lang.WrappedTargetException(e.getMessage(), this, null);
+ throw new com.sun.star.lang.WrappedTargetException(e.getMessage(), this, e);
}
catch (java.lang.IncompatibleClassChangeError e2)
{
LOGGER.error("Detected an IncompatibleClassChangeError");
- throw new com.sun.star.lang.WrappedTargetException("caught a " + e2.getClass().getName(), this, new com.sun.star.uno.Exception(e2.getLocalizedMessage()));
+ throw new com.sun.star.lang.WrappedTargetException("caught a " + e2.getClass().getName(), this, e2);
}
Thread.currentThread().setContextClassLoader(cl);
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/StarReportDataFactory.java b/reportbuilder/java/org/libreoffice/report/pentaho/StarReportDataFactory.java
index 0c78d4a8d2e4..3fde6704afad 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/StarReportDataFactory.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/StarReportDataFactory.java
@@ -74,7 +74,7 @@ public class StarReportDataFactory implements ReportDataFactory, Cloneable
{
message = "Failed to query data";
}
- throw new ReportDataFactoryException(message);
+ throw new ReportDataFactoryException(message, e);
}
}
@@ -99,7 +99,7 @@ public class StarReportDataFactory implements ReportDataFactory, Cloneable
}
catch (CloneNotSupportedException e)
{
- throw new IllegalStateException("Clone failed?");
+ throw new IllegalStateException(e);
}
}
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/StyleUtilities.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/StyleUtilities.java
index e0724596773e..8ba9231850cd 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/StyleUtilities.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/StyleUtilities.java
@@ -242,7 +242,7 @@ public class StyleUtilities
}
catch (CloneNotSupportedException e)
{
- throw new ReportProcessingException("Failed to clone font-face element");
+ throw new ReportProcessingException("Failed to clone font-face element", e);
}
}
@@ -308,7 +308,7 @@ public class StyleUtilities
}
catch (CloneNotSupportedException e)
{
- throw new ReportProcessingException("Failed to copy style. This should not have happened.");
+ throw new ReportProcessingException("Failed to copy style. This should not have happened.", e);
}
}
else
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
index f45eca92a47f..0023856170c0 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
@@ -1263,7 +1263,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
catch (IOException ioe)
{
- throw new ReportProcessingException("Failed to write settings document");
+ throw new ReportProcessingException("Failed to write settings document", ioe);
}
}