org.apache.camel.processor
Class ErrorHandlerSupport
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.ErrorHandlerSupport
- All Implemented Interfaces:
- Processor, ErrorHandler, Service
- Direct Known Subclasses:
- DeadLetterChannel, LoggingErrorHandler
public abstract class ErrorHandlerSupport
- extends ServiceSupport
- implements ErrorHandler
- Version:
- $Revision: 1.1 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doStart, doStop, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorHandlerSupport
public ErrorHandlerSupport()
addExceptionPolicy
public void addExceptionPolicy(ExceptionType exception)
customProcessorForException
protected boolean customProcessorForException(Exchange exchange,
Throwable exception)
throws Exception
- Attempts to invoke the handler for this particular exception if one is available
- Parameters:
exchange
- exception
-
- Returns:
-
- Throws:
Exception
getExceptionPolicy
protected ExceptionType getExceptionPolicy(Exchange exchange,
Throwable exception)
Copyright © 2007 Apache Software Foundation. All Rights Reserved.