org.apache.camel.builder
Interface ErrorHandlerBuilder

All Known Implementing Classes:
DeadLetterChannelBuilder, ErrorHandlerBuilderRef, ErrorHandlerBuilderSupport, LoggingErrorHandlerBuilder, NoErrorHandlerBuilder

public interface ErrorHandlerBuilder

A builder of a Error Handler

Version:
$Revision: 674383 $

Method Summary
 void addErrorHandlers(ExceptionType exception)
          Adds error handler for the given exception type
 ErrorHandlerBuilder copy()
          Creates a copy of this builder
 Processor createErrorHandler(RouteContext routeContext, Processor processor)
          Creates the error handler interceptor
 

Method Detail

copy

ErrorHandlerBuilder copy()
Creates a copy of this builder


createErrorHandler

Processor createErrorHandler(RouteContext routeContext,
                             Processor processor)
                             throws Exception
Creates the error handler interceptor

Throws:
Exception

addErrorHandlers

void addErrorHandlers(ExceptionType exception)
Adds error handler for the given exception type

Parameters:
exception - the exception to handle


Copyright © 2008 Apache Software Foundation. All Rights Reserved.