org.apache.camel.impl
Class LoggingExceptionHandler

java.lang.Object
  extended by org.apache.camel.impl.LoggingExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class LoggingExceptionHandler
extends Object
implements ExceptionHandler

A default implementation of ExceptionHandler which uses a Logger to log to an arbitrary Log with some LoggingLevel

Version:
$Revision: 757367 $

Constructor Summary
LoggingExceptionHandler(Class ownerType)
           
LoggingExceptionHandler(Logger logger)
           
 
Method Summary
 void handleException(Throwable exception)
          Handles the given exception
protected  boolean isCausedByRollbackExchangeException(Throwable exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingExceptionHandler

public LoggingExceptionHandler(Class ownerType)

LoggingExceptionHandler

public LoggingExceptionHandler(Logger logger)
Method Detail

handleException

public void handleException(Throwable exception)
Description copied from interface: ExceptionHandler
Handles the given exception

Specified by:
handleException in interface ExceptionHandler
Parameters:
exception - the exception

isCausedByRollbackExchangeException

protected boolean isCausedByRollbackExchangeException(Throwable exception)


Apache CAMEL