summaryrefslogtreecommitdiff
path: root/jurt/com
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-20 18:44:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-03-20 18:44:44 +0100
commitfb3d06e20aa2253ca5640f5391dc59a03a423b0b (patch)
treedf0e9ed600f5f67ebf0aa67f07477946a3b850e9 /jurt/com
parent92a1757fa523bd15412ca1195807ac41205e9438 (diff)
Improve error reporting
Diffstat (limited to 'jurt/com')
-rw-r--r--jurt/com/sun/star/comp/servicemanager/ServiceManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/jurt/com/sun/star/comp/servicemanager/ServiceManager.java b/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
index 899999d5f339..c1366a90287e 100644
--- a/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
+++ b/jurt/com/sun/star/comp/servicemanager/ServiceManager.java
@@ -800,9 +800,9 @@ public class ServiceManager implements XMultiServiceFactory,
return enumeration.nextElement();
} catch (java.util.NoSuchElementException e) {
com.sun.star.container.NoSuchElementException ex =
- new com.sun.star.container.NoSuchElementException();
- ex.fillInStackTrace();
-
+ new com.sun.star.container.NoSuchElementException(
+ e.toString());
+ ex.initCause(e);
throw ex;
}
}