summaryrefslogtreecommitdiff
path: root/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
diff options
context:
space:
mode:
Diffstat (limited to 'javaunohelper/com/sun/star/lib/uno/helper/Factory.java')
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/Factory.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/Factory.java b/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
index 19f6fc08b067..ca0bf84212c2 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
@@ -22,7 +22,6 @@ import com.sun.star.lang.XSingleComponentFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.lang.XInitialization;
import com.sun.star.registry.XRegistryKey;
-
import com.sun.star.uno.UnoRuntime;
@@ -198,15 +197,15 @@ public class Factory
else if (targetException instanceof com.sun.star.uno.Exception)
throw (com.sun.star.uno.Exception)targetException;
else
- throw new com.sun.star.uno.Exception( targetException.toString(), this );
+ throw new com.sun.star.uno.Exception(targetException, targetException.getMessage(), this);
}
catch (IllegalAccessException exc)
{
- throw new com.sun.star.uno.RuntimeException( exc.toString(), this );
+ throw new com.sun.star.uno.RuntimeException( exc, exc.getMessage(), this);
}
catch (InstantiationException exc)
{
- throw new com.sun.star.uno.RuntimeException( exc.toString(), this );
+ throw new com.sun.star.uno.RuntimeException( exc, exc.getMessage(), this);
}
}
// XSingleComponentFactory impl