You can still throw exceptions by putting the exception in the exchange object. Exchange.setException(..);
Elvio -----Original Message----- From: Richa [mailto:rsinha2...@gmail.com] Sent: 15 July 2014 15:40 To: users@camel.apache.org Subject: Error handling in aggregation strategy Hi, I have a camel route having a custom aggregation strategy which extends AggregationStrategy. As per the signature of aggregate() method, it does not allow to throw an exception. But I want to handle the exceptions (that might occur in the aggregation strategy) in the base route builder in the onException blocks. Can someone help me in handling the exceptions that occur in the aggregation strategy? Thanks, Richa -- View this message in context: http://camel.465427.n5.nabble.com/Error-handling-in-aggregation-strategy-tp5753876.html Sent from the Camel - Users mailing list archive at Nabble.com.