org.apache.camel.builder
Class NoErrorHandlerBuilder

java.lang.Object
  extended by org.apache.camel.builder.ErrorHandlerBuilderSupport
      extended by org.apache.camel.builder.NoErrorHandlerBuilder
All Implemented Interfaces:
ErrorHandlerBuilder, ErrorHandlerFactory

public class NoErrorHandlerBuilder
extends ErrorHandlerBuilderSupport

A builder to disable the use of an error handler so that any exceptions are thrown. This not recommended in general, the Dead Letter Channel should be used if you are unsure; however it can be useful sometimes to disable an error handler inside a complex route so that exceptions bubble up to the parent Processor

Version:

Constructor Summary
NoErrorHandlerBuilder()
           
 
Method Summary
 ErrorHandlerBuilder cloneBuilder()
          Clones this builder so each RouteBuilder has its private builder to use, to avoid changes from one RouteBuilder to influence the others.
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
          Creates the error handler
 boolean supportTransacted()
          Whether this error handler supports transacted exchanges.
 
Methods inherited from class org.apache.camel.builder.ErrorHandlerBuilderSupport
addErrorHandlers, cloneBuilder, configure, exceptionPolicyStrategy, getErrorHandlers, getExceptionPolicyStrategy, setErrorHandlers, setExceptionPolicyStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoErrorHandlerBuilder

public NoErrorHandlerBuilder()
Method Detail

createErrorHandler

public Processor createErrorHandler(RouteContext routeContext,
                                    Processor processor)
Description copied from interface: ErrorHandlerFactory
Creates the error handler

Parameters:
routeContext - the route context
processor - the outer processor
Returns:
the error handler

supportTransacted

public boolean supportTransacted()
Description copied from interface: ErrorHandlerBuilder
Whether this error handler supports transacted exchanges.


cloneBuilder

public ErrorHandlerBuilder cloneBuilder()
Description copied from interface: ErrorHandlerBuilder
Clones this builder so each RouteBuilder has its private builder to use, to avoid changes from one RouteBuilder to influence the others.

This is needed by the current Camel 2.x architecture.

Returns:
a clone of this ErrorHandlerBuilder


Apache CAMEL