summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-01-21 15:41:26 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-01-21 15:41:26 +0000
commitaeb11c68fd0c179bf5d7b36eb8e6ff4bc89eb4e1 (patch)
tree5ea449df039c2c8f604cad0aa30b6798ded2d1d9 /sca-java-2.x
parent2ea0eebe2f68ad06dc19abc7be2b6597ee80ed49 (diff)
TUSCANY-3783 - don't wrap exceptions unnecessarily
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1061855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java
index 1c0941f26d..a9b93ae2e8 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java
@@ -174,11 +174,13 @@ public class RuntimeInvoker implements Invoker, InvokerAsyncRequest {
try {
try {
((InvokerAsyncRequest)headInvoker).invokeAsyncRequest(msg);
- } catch (Throwable ex) {
+ } catch (ServiceRuntimeException ex) {
+ throw ex;
+ } catch (Throwable ex) {
// temporary fix to swallow the dummy exception that's
// thrown back to get past the response chain processing.
if (!(ex instanceof AsyncResponseException)){
- throw new ServiceRuntimeException(ex);
+ throw new ServiceRuntimeException(ex);
}
}
} finally {