Package org.apache.camel.builder
Class NoErrorHandlerBuilder
- java.lang.Object
-
- org.apache.camel.builder.ErrorHandlerBuilderSupport
-
- org.apache.camel.builder.NoErrorHandlerBuilder
-
- All Implemented Interfaces:
ErrorHandlerBuilder
,org.apache.camel.ErrorHandlerFactory
,NoErrorHandlerProperties
public class NoErrorHandlerBuilder extends ErrorHandlerBuilderSupport implements NoErrorHandlerProperties
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 parentProcessor
-
-
Constructor Summary
Constructors Constructor Description NoErrorHandlerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorHandlerBuilder
cloneBuilder()
Clones this builder so eachRouteBuilder
has its private builder to use, to avoid changes from oneRouteBuilder
to influence the others.boolean
supportTransacted()
Whether this error handler supports transacted exchanges.
-
-
-
Method Detail
-
supportTransacted
public boolean supportTransacted()
Description copied from interface:ErrorHandlerBuilder
Whether this error handler supports transacted exchanges.- Specified by:
supportTransacted
in interfaceErrorHandlerBuilder
- Overrides:
supportTransacted
in classErrorHandlerBuilderSupport
-
cloneBuilder
public ErrorHandlerBuilder cloneBuilder()
Description copied from interface:ErrorHandlerBuilder
Clones this builder so eachRouteBuilder
has its private builder to use, to avoid changes from oneRouteBuilder
to influence the others. This is needed by the current Camel 2.x architecture.- Specified by:
cloneBuilder
in interfaceErrorHandlerBuilder
- Returns:
- a clone of this
ErrorHandlerBuilder
-
-