From aeb11c68fd0c179bf5d7b36eb8e6ff4bc89eb4e1 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 21 Jan 2011 15:41:26 +0000 Subject: TUSCANY-3783 - don't wrap exceptions unnecessarily git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1061855 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x') 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 { -- cgit v1.2.3