anchor.diff:      .to("activemq:businessFailed");
   ----
   
  -And in Spring DSL you just add another exception element:
  +And in XML DSL you just add another exception element:
   
   [source,xml]
   ----
  
positive.code: xref:{eip-vc}:eips:message-translator.adoc[transform] to set the response, as shown in
  the sample below:
  
  /camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandleAndTransformTest.java
  
  We modify the sample slightly to return the original caused exception
  message instead of the fixed text `Sorry`:
  
  /camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandleAndTransformTest.java
  
  And we can use the xref:components:languages:simple-language.adoc[Simple] language to set a readable error
  message with the caused exception message:
  
  /camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandleAndTransformTest.java
  
  [[ExceptionClause-HandleandContinueExceptions]]
  == Handle and Continue Exceptions
  
negative.code: [[ExceptionClause-UsingGlobalandPerRouteExceptionClauses]]
  == Using Global and Per Route 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 that we change over time. First off
  we use only global exception clauses:
  
  [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.
  