summaryrefslogtreecommitdiff
path: root/jurt/com/sun/star/lib/uno/environments/remote
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-07-07 09:56:24 +0000
committerOliver Bolte <obo@openoffice.org>2005-07-07 09:56:24 +0000
commit6460ca95347dad625478f25daeec048c35832100 (patch)
tree5e41336885e5009c20e63a8b7b6612c7700391af /jurt/com/sun/star/lib/uno/environments/remote
parentc0f4929b3097037561c47ce05e9fd5b848e84bee (diff)
INTEGRATION: CWS sb33 (1.13.178); FILE MERGED
2005/06/15 09:17:48 sb 1.13.178.1: #i50656# Improved the information available to clients about exceptions thrown across the bridge.
Diffstat (limited to 'jurt/com/sun/star/lib/uno/environments/remote')
-rw-r--r--jurt/com/sun/star/lib/uno/environments/remote/Job.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/jurt/com/sun/star/lib/uno/environments/remote/Job.java b/jurt/com/sun/star/lib/uno/environments/remote/Job.java
index e6c001d3d2ff..684fdb3edbe5 100644
--- a/jurt/com/sun/star/lib/uno/environments/remote/Job.java
+++ b/jurt/com/sun/star/lib/uno/environments/remote/Job.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Job.java,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: sb $ $Date: 2002-09-23 11:57:12 $
+ * last change: $Author: obo $ $Date: 2005-07-07 10:56:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -81,7 +81,7 @@ import com.sun.star.uno.UnoRuntime;
* The Job is an abstraction for tasks which have to be done
* remotely because of a method invocation.
* <p>
- * @version $Revision: 1.13 $ $ $Date: 2002-09-23 11:57:12 $
+ * @version $Revision: 1.14 $ $ $Date: 2005-07-07 10:56:24 $
* @author Kay Ramme
* @see com.sun.star.lib.uno.environments.remote.ThreadID
* @see com.sun.star.lib.uno.environments.remote.IReceiver
@@ -164,7 +164,7 @@ public class Job {
}
if (_iMessage.isException()) {
- throw (Throwable) msgResult;
+ throw remoteUnoRequestRaisedException(msgResult);
}
String operation = _iMessage.getOperation();
@@ -206,7 +206,7 @@ public class Job {
StringWriter writer = new StringWriter();
exception.printStackTrace(new PrintWriter(writer));
exception = new com.sun.star.uno.RuntimeException(
- "Java exception: " + writer, null);
+ "Java exception: <" + writer + ">", null);
}
_iReceiver.sendReply(true, _iMessage.getThreadId(),
@@ -293,4 +293,12 @@ public class Job {
// _zInterface = null;
// _disposeId = null;
}
+
+ // The name of this method is chosen to generate a somewhat self-explanatory
+ // stack trace:
+ private Exception remoteUnoRequestRaisedException(Object exception) {
+ Exception e = (Exception) exception;
+ e.fillInStackTrace();
+ return e;
+ }
}