org.springframework.richclient.exceptionhandling.delegation
Class SimpleExceptionHandlerDelegate

java.lang.Object
  extended by org.springframework.richclient.exceptionhandling.delegation.AbstractExceptionHandlerDelegate
      extended by org.springframework.richclient.exceptionhandling.delegation.SimpleExceptionHandlerDelegate
All Implemented Interfaces:
Thread.UncaughtExceptionHandler, ExceptionHandlerDelegate

public class SimpleExceptionHandlerDelegate
extends AbstractExceptionHandlerDelegate

Handles the thrownTrowable by the exception handler if it is an instance of one of the throwableClassList. Note: Also subclasses of the classes in the throwableClassList will be handled by the exception handler.

Since:
0.3.0
Author:
Geoffrey De Smet

Field Summary
 
Fields inherited from class org.springframework.richclient.exceptionhandling.delegation.AbstractExceptionHandlerDelegate
exceptionHandler, exceptionPurger, purgeOnAppropriateCheck, purgeOnHandling
 
Constructor Summary
SimpleExceptionHandlerDelegate()
           
SimpleExceptionHandlerDelegate(Class throwableClass, Thread.UncaughtExceptionHandler exceptionHandler)
           
SimpleExceptionHandlerDelegate(List<Class> throwableClassList, Thread.UncaughtExceptionHandler exceptionHandler)
           
 
Method Summary
 boolean hasAppropriateHandlerPurged(Throwable throwable)
           
 void setThrowableClass(Class throwableClass)
           
 void setThrowableClassList(List<Class> throwableClassList)
           
 
Methods inherited from class org.springframework.richclient.exceptionhandling.delegation.AbstractExceptionHandlerDelegate
hasAppropriateHandler, setExceptionHandler, setExceptionPurger, setPurgeOnAppropriateCheck, setPurgeOnHandling, uncaughtException, uncaughtExceptionPurged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExceptionHandlerDelegate

public SimpleExceptionHandlerDelegate()

SimpleExceptionHandlerDelegate

public SimpleExceptionHandlerDelegate(Class throwableClass,
                                      Thread.UncaughtExceptionHandler exceptionHandler)

SimpleExceptionHandlerDelegate

public SimpleExceptionHandlerDelegate(List<Class> throwableClassList,
                                      Thread.UncaughtExceptionHandler exceptionHandler)
Method Detail

setThrowableClass

public void setThrowableClass(Class throwableClass)

setThrowableClassList

public void setThrowableClassList(List<Class> throwableClassList)

hasAppropriateHandlerPurged

public boolean hasAppropriateHandlerPurged(Throwable throwable)
Specified by:
hasAppropriateHandlerPurged in class AbstractExceptionHandlerDelegate


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.