Author: ningjiang
Date: Wed Nov 5 00:17:05 2008
New Revision: 711531
URL: http://svn.apache.org/viewvc?rev=711531&view=rev
Log:
CAMEL-1053 using the ObjectHelper.wrapRuntimeCamelException to wrap the
exception as claus suggested
Modified:
activemq/camel/trunk/components/camel-spring-integration/src/main/java/org/apache/camel/component/spring/integration/SpringIntegrationConsumer.java
Modified:
activemq/camel/trunk/components/camel-spring-integration/src/main/java/org/apache/camel/component/spring/integration/SpringIntegrationConsumer.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring-integration/src/main/java/org/apache/camel/component/spring/integration/SpringIntegrationConsumer.java?rev=711531&r1=711530&r2=711531&view=diff
==============================================================================
---
activemq/camel/trunk/components/camel-spring-integration/src/main/java/org/apache/camel/component/spring/integration/SpringIntegrationConsumer.java
(original)
+++
activemq/camel/trunk/components/camel-spring-integration/src/main/java/org/apache/camel/component/spring/integration/SpringIntegrationConsumer.java
Wed Nov 5 00:17:05 2008
@@ -94,8 +94,7 @@
getProcessor().process(exchange);
} catch (Exception e) {
//TODO need to find a way to deal with this exception
- //Now I just throw it out
- throw new RuntimeCamelException(e);
+ throw ObjectHelper.wrapRuntimeCamelException(e);
}
if (endpoint.isInOut()) {
// get the output channel from message header