title: How to catch/Handle all uncaught exceptions in Camel
body: <p>I am currently using doTry/doCatch blocks in my routes due to which I cannot use a global onException block. </p>
  
  <p>However, I want to perform some business logic if camel route ever breaks (because of bad code or unexpected/untested scenarios). This will hopefully never happen, but I still want to handle for worse case.</p>
  
  <p>I cannot have a java.lang.Exception in global onException block, also, I don't want to put an addition catch on every route.</p>
  
  <p>Is there a specific method Camel calls before throwing uncaught exceptions and breaking route.</p>
  
  <p>I see following log for Uncaught Exceptions: </p>
  
  <pre><code>2015-04-20 15:11:35,279 [Camel (fulfillmentOrderProcessor) thread #5 - seda://FulfillmentSedaQueue] WARN  o.a.c.component.aws.sqs.SqsConsumer [, ID-ip-10-180-252-213-54360-1429566855015-0-144]: Exchange failed, so rolling back message status: Exchange[Message: {... }]
  
  java.lang.IllegalArgumentException: Unable to parse string argument null
  </code></pre>
  
  <p>I looked at UnitOfWork.afterprocess. But this will not help as exchange will have exception even if I have handled it in camel route.</p>