You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2011/01/21 16:41:27 UTC

svn commit: r1061855 - /tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java

Author: slaws
Date: Fri Jan 21 15:41:26 2011
New Revision: 1061855

URL: http://svn.apache.org/viewvc?rev=1061855&view=rev
Log:
TUSCANY-3783 - don't wrap exceptions unnecessarily

Modified:
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java?rev=1061855&r1=1061854&r2=1061855&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/RuntimeInvoker.java Fri Jan 21 15:41:26 2011
@@ -174,11 +174,13 @@ public class RuntimeInvoker implements I
         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 {