ch.elca.el4j.services.exceptionhandler.handler
Class SimpleLogExceptionHandler

java.lang.Object
  extended by ch.elca.el4j.services.exceptionhandler.handler.AbstractExceptionHandler
      extended by ch.elca.el4j.services.exceptionhandler.handler.SimpleLogExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class SimpleLogExceptionHandler
extends AbstractExceptionHandler

This exception handler logs all exceptions and returns null.

Author:
Andreas Bur (ABU)
File-location:
SimpleLogExceptionHandler
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Constructor Summary
SimpleLogExceptionHandler()
           
 
Method Summary
protected  Object handleException(Throwable t, AbstractExceptionHandlerInterceptor exceptionInvoker, org.aopalliance.intercept.MethodInvocation invocation, org.slf4j.Logger logger)
          Handles the given throwable thrown by the method invocation.
 
Methods inherited from class ch.elca.el4j.services.exceptionhandler.handler.AbstractExceptionHandler
getInvocationDescription, handleException, setUseDynamicLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogExceptionHandler

public SimpleLogExceptionHandler()
Method Detail

handleException

protected Object handleException(Throwable t,
                                 AbstractExceptionHandlerInterceptor exceptionInvoker,
                                 org.aopalliance.intercept.MethodInvocation invocation,
                                 org.slf4j.Logger logger)
                          throws Throwable
Handles the given throwable thrown by the method invocation. This method is called with the appropriate logger.

Specified by:
handleException in class AbstractExceptionHandler
Parameters:
t - The exception thrown in the method invocation.
exceptionInvoker - The exception invoker that called this exception handler.
invocation - The original method invocation.
logger - The logger to be used by subclasses.
Returns:
Returns an object that is treated as the original invocation's return value.
Throws:
Throwable - Any exception thrown by the handler.


Copyright © 2005-2011 ELCA. All Rights Reserved.