public abstract class ErrorHandlerBuilderSupport extends Object implements ErrorHandlerBuilder
Constructor and Description |
---|
ErrorHandlerBuilderSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
addExceptionPolicy(org.apache.camel.processor.errorhandler.ErrorHandlerSupport handlerSupport,
org.apache.camel.spi.RouteContext routeContext,
OnExceptionDefinition exceptionType) |
protected void |
cloneBuilder(ErrorHandlerBuilderSupport other) |
void |
configure(org.apache.camel.spi.RouteContext routeContext,
org.apache.camel.processor.ErrorHandler handler)
Configures the other error handler based on this error handler.
|
protected static List<Class<? extends Throwable>> |
createExceptionClasses(OnExceptionDefinition exceptionType,
org.apache.camel.spi.ClassResolver resolver) |
ErrorHandlerBuilderSupport |
exceptionPolicyStrategy(org.apache.camel.processor.errorhandler.ExceptionPolicyStrategy exceptionPolicyStrategy)
Sets the exception policy to use
|
org.apache.camel.processor.errorhandler.ExceptionPolicyStrategy |
getExceptionPolicyStrategy()
Gets the exception policy strategy
|
void |
setExceptionPolicyStrategy(org.apache.camel.processor.errorhandler.ExceptionPolicyStrategy exceptionPolicyStrategy)
Sets the exception policy strategy to use for resolving the
OnExceptionDefinition to use for a given
thrown exception |
protected static org.apache.camel.processor.errorhandler.ExceptionPolicy |
toExceptionPolicy(OnExceptionDefinition exceptionType,
org.apache.camel.spi.RouteContext routeContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneBuilder, supportTransacted
public ErrorHandlerBuilderSupport()
protected void cloneBuilder(ErrorHandlerBuilderSupport other)
public void configure(org.apache.camel.spi.RouteContext routeContext, org.apache.camel.processor.ErrorHandler handler)
routeContext
- the route contexthandler
- the other error handlerpublic static void addExceptionPolicy(org.apache.camel.processor.errorhandler.ErrorHandlerSupport handlerSupport, org.apache.camel.spi.RouteContext routeContext, OnExceptionDefinition exceptionType)
protected static org.apache.camel.processor.errorhandler.ExceptionPolicy toExceptionPolicy(OnExceptionDefinition exceptionType, org.apache.camel.spi.RouteContext routeContext)
protected static List<Class<? extends Throwable>> createExceptionClasses(OnExceptionDefinition exceptionType, org.apache.camel.spi.ClassResolver resolver)
public ErrorHandlerBuilderSupport exceptionPolicyStrategy(org.apache.camel.processor.errorhandler.ExceptionPolicyStrategy exceptionPolicyStrategy)
public org.apache.camel.processor.errorhandler.ExceptionPolicyStrategy getExceptionPolicyStrategy()
public void setExceptionPolicyStrategy(org.apache.camel.processor.errorhandler.ExceptionPolicyStrategy exceptionPolicyStrategy)
OnExceptionDefinition
to use for a given
thrown exceptionexceptionPolicyStrategy
- the exception policy strategyApache Camel