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: 1204 $

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
 void setErrorHandlers(List<ExceptionType> exceptions)
          Adds the error handlers for the given list of exception types
 

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

setErrorHandlers

void setErrorHandlers(List<ExceptionType> exceptions)
Adds the error handlers for the given list of exception types

Parameters:
exceptions - the list of exceptions to handle


Copyright © 2009 IONA Open Source Community. All Rights Reserved.