camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r832999 - /camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java
Date Thu, 05 Nov 2009 05:34:10 GMT
Author: ningjiang
Date: Thu Nov  5 05:34:10 2009
New Revision: 832999

URL: http://svn.apache.org/viewvc?rev=832999&view=rev
Log:
CAMEL-2129 using IOHelper to create the IOException

Modified:
    camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java

Modified: camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java?rev=832999&r1=832998&r2=832999&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java
(original)
+++ camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java
Thu Nov  5 05:34:10 2009
@@ -31,6 +31,7 @@
 import org.apache.camel.component.cxf.util.CxfHeaderHelper;
 import org.apache.camel.impl.DefaultCamelContext;
 import org.apache.camel.spi.HeaderFilterStrategy;
+import org.apache.camel.util.IOHelper;
 import org.apache.cxf.Bus;
 import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.configuration.Configurable;
@@ -180,7 +181,7 @@
             });
             // Throw the exception that the template get
             if (exchange.getException() != null) {
-                throw new IOException("Can't get the response message. Caused by " + exchange.getException());
+                throw IOHelper.createIOException("Can't send the request message.", exchange.getException());
             }
             exchange.setProperty(CxfConstants.CXF_EXCHANGE, outMessage.getExchange());
             if (!isOneWay) {
@@ -196,7 +197,7 @@
                     exchange, true);
             } catch (Exception ex) {
                 // Throw IOException here
-                throw new IOException("Can't get the response message. Caused by: " + ex);
+                throw IOHelper.createIOException("Can't get the response message. ", ex);
             }
             incomingObserver.onMessage(inMessage);
         }



Mime
View raw message