cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1089251 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
Date Tue, 05 Apr 2011 21:47:07 GMT
Author: dkulp
Date: Tue Apr  5 21:47:07 2011
New Revision: 1089251

URL: http://svn.apache.org/viewvc?rev=1089251&view=rev
Log:
[CXF-3117] Throw a better exception from  SoapTransportFactory

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java?rev=1089251&r1=1089250&r2=1089251&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
Tue Apr  5 21:47:07 2011
@@ -133,8 +133,9 @@ public class SoapTransportFactory extend
             }
             return destinationFactory.getDestination(ei);
         } catch (BusException e) {
-            throw new RuntimeException("Could not find destination factory for transport
"
-                                       + transId);
+            IOException ex = new IOException("Could not find destination factory for transport
" + transId);
+            ex.initCause(e);
+            throw ex;
         }
     }
 



Mime
View raw message