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 {


Reply via email to