ch.elca.el4j.services.exceptionhandler.handler
Class AbstractExceptionTransformerExceptionHandler
java.lang.Object
ch.elca.el4j.services.exceptionhandler.handler.AbstractExceptionHandler
ch.elca.el4j.services.exceptionhandler.handler.AbstractExceptionTransformerExceptionHandler
- All Implemented Interfaces:
- ExceptionHandler
- Direct Known Subclasses:
- SimpleExceptionTransformerExceptionHandler
public abstract class AbstractExceptionTransformerExceptionHandler
- extends AbstractExceptionHandler
This is a convenience abstract class to create exception transformer
exception handlers.
- Author:
- Andreas Bur (ABU)
- File-location:
- AbstractExceptionTransformerExceptionHandler
- Last check-in date:
- 2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractExceptionTransformerExceptionHandler
public AbstractExceptionTransformerExceptionHandler()
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.
transform
protected abstract Exception transform(Throwable t,
org.slf4j.Logger logger)
- Transforms the given throwable into an appropriate exception.
- Parameters:
t
- The throwable to transform.logger
- The logger that is configured properly.
- Returns:
- Returns the transformed exception or
null
if no
exceptions has to be thrown.
Copyright © 2005-2011 ELCA. All Rights Reserved.