anchor.diff:  [[ExceptionClause-UsingGlobalandPerRouteExceptionClauses]]
   == Using Global and Per Route Exception Clauses
   
  -Camel supports quite advanced configuration of exception clauses.
  +Camel supports advanced configuration of exception clauses.
   
   You can define exception clauses either as:
   
   * global
   * or route specific
   
  -We start off with the sample sample that we change over time. First off
  +We start off with the sample that we change over time. First off
   we use only global exception clauses:
   
  -/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionRouteTest.java
  +[source,java]
  +----
  +// default should errors go to mock:error
  +errorHandler(deadLetterChannel("mock:error").redeliveryDelay(0));
  +
  +// if a MyTechnicalException is thrown we will not try to
  +// redeliver and we mark it as handled
  +// so the caller does not get a failure
  +// since we have no to then the exchange will continue to be
  +// routed to the normal error handler
  +// destination that is mock:error as defined above
  +onException(MyTechnicalException.class).maximumRedeliveries(0).handled(true);
  +
  +// if a MyFunctionalException is thrown we do not want Camel to
  +// redelivery but handle it our self using
  +// our bean myOwnHandler, then the exchange is not routed to the
  +// default error (mock:error)
  +onException(MyFunctionalException.class).maximumRedeliveries(0).handled(true).to("bean:myOwnHandler");
  +
  +// here we route message to our service bean
  +from("direct:start").choice().when().xpath("//type = 'myType'").to("bean:myServiceBean").end().to("mock:result");
  +----
   
   In the next sample we change the global exception policies to be pure route
   specific.
  
positive.code: [[ExceptionClause-ReusingRedeliveryPolicy]]
  == Reusing RedeliveryPolicy
  
  *Since Camel 1.5.1 or later*
  
  You can reference a *`RedeliveryPolicy`* so you can reuse existing
  configurations and use standard spring bean style configuration that
  supports property placeholders.
  
negative.code:     .to("activemq:businessFailed");
  ----
  
  And in XML DSL you just add another exception element:
  
  [source,xml]
  ----
  