org.apache.camel.processor
Class LoggingErrorHandler

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.processor.ErrorHandlerSupport
          extended by org.apache.camel.processor.RedeliveryErrorHandler
              extended by org.apache.camel.processor.DefaultErrorHandler
                  extended by org.apache.camel.processor.LoggingErrorHandler
All Implemented Interfaces:
AsyncProcessor, Processor, ErrorHandler, Service, ShutdownableService

public class LoggingErrorHandler
extends DefaultErrorHandler

An ErrorHandler which uses commons-logging to dump the error

Version:
$Revision: 21784 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.camel.processor.RedeliveryErrorHandler
RedeliveryErrorHandler.RedeliveryData
 
Field Summary
 
Fields inherited from class org.apache.camel.processor.RedeliveryErrorHandler
camelContext, deadLetter, deadLetterUri, handledPolicy, logger, output, outputAsync, redeliveryPolicy, redeliveryProcessor, retryWhilePolicy, useOriginalMessagePolicy
 
Fields inherited from class org.apache.camel.processor.ErrorHandlerSupport
log
 
Constructor Summary
LoggingErrorHandler(CamelContext camelContext, Processor output, Logger logger, ExceptionPolicyStrategy exceptionPolicyStrategy)
          Creates the logging error handler.
 
Method Summary
 String toString()
           
 
Methods inherited from class org.apache.camel.processor.DefaultErrorHandler
process
 
Methods inherited from class org.apache.camel.processor.RedeliveryErrorHandler
deliverToFailureProcessor, deliverToOnRedeliveryProcessor, doStart, doStop, getDeadLetter, getDeadLetterUri, getLogger, getOutput, getRedeliveryPolicy, handleException, isCancelledOrInterrupted, isDone, isUseOriginalMessagePolicy, prepareExchangeAfterFailure, prepareExchangeForContinue, prepareExchangeForRedelivery, process, processAsyncErrorHandler, processErrorHandler, shouldHandleException, supportTransacted
 
Methods inherited from class org.apache.camel.processor.ErrorHandlerSupport
addExceptionPolicy, createDefaultExceptionPolicyStrategy, customProcessorForException, getExceptionPolicy, setExceptionPolicy
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingErrorHandler

public LoggingErrorHandler(CamelContext camelContext,
                           Processor output,
                           Logger logger,
                           ExceptionPolicyStrategy exceptionPolicyStrategy)
Creates the logging error handler.

Parameters:
camelContext - the camel context
output - outer processor that should use this logging error handler
logger - logger to use for logging failures
exceptionPolicyStrategy - strategy for onException handling
Method Detail

toString

public String toString()
Overrides:
toString in class DefaultErrorHandler


Apache CAMEL