org.springframework.richclient.exceptionhandling.delegation
Interface ExceptionPurger

All Known Implementing Classes:
DefaultExceptionPurger

public interface ExceptionPurger

Purges a throwable, ussually by looking into it's chain. Usefull for unwrapping WrapEverythingException etc.

Since:
0.3.0
Author:
Geoffrey De Smet
See Also:
DefaultExceptionPurger

Method Summary
 Throwable purge(Throwable e)
          Purges the throwable to unwrap it to find the most suitable throwable to evaluate or handle.
 

Method Detail

purge

Throwable purge(Throwable e)
Purges the throwable to unwrap it to find the most suitable throwable to evaluate or handle.

Parameters:
e - the root exception or error
Returns:
e or a chained Throwable which is part of e's chain


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