org.springframework.richclient.exceptionhandling.delegation
Class ChainInspectingExceptionHandlerDelegate
java.lang.Object
org.springframework.richclient.exceptionhandling.delegation.AbstractExceptionHandlerDelegate
org.springframework.richclient.exceptionhandling.delegation.ChainInspectingExceptionHandlerDelegate
- All Implemented Interfaces:
- Thread.UncaughtExceptionHandler, ExceptionHandlerDelegate
public class ChainInspectingExceptionHandlerDelegate
- extends AbstractExceptionHandlerDelegate
Checks the exception chain to determine if it wants to handle it.
In most cases this class is overkill and SimpleExceptionHandlerDelegate with a purger will suffice.
Think about it: just purging out MySpecificLoginException suffices most of the time,
it doesn't really matter that it's wrapped in MyWrapperException.
- Since:
- 0.3.0
- Author:
- Geoffrey De Smet
- See Also:
SimpleExceptionHandlerDelegate
,
DefaultExceptionPurger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainInspectingExceptionHandlerDelegate
public ChainInspectingExceptionHandlerDelegate()
ChainInspectingExceptionHandlerDelegate
public ChainInspectingExceptionHandlerDelegate(List<ChainInspectingExceptionHandlerDelegate.ChainPart> chainPartList,
Thread.UncaughtExceptionHandler exceptionHandler)
setChainPartList
public void setChainPartList(List<ChainInspectingExceptionHandlerDelegate.ChainPart> chainPartList)
hasAppropriateHandlerPurged
public boolean hasAppropriateHandlerPurged(Throwable root)
- Specified by:
hasAppropriateHandlerPurged
in class AbstractExceptionHandlerDelegate
findChainPartThrowable
public Throwable findChainPartThrowable(ChainInspectingExceptionHandlerDelegate.ChainPart chainPart,
Throwable firstThrowable)
uncaughtExceptionPurged
public void uncaughtExceptionPurged(Thread thread,
Throwable throwable)
- Overrides:
uncaughtExceptionPurged
in class AbstractExceptionHandlerDelegate
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.