|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.exceptionhandling.delegation.DefaultExceptionPurger
public class DefaultExceptionPurger
A purger that looks through to a throwable chain and can select one to unwrap.
Field Summary | |
---|---|
protected List<Class> |
excludeThrowableClassList
|
protected List<Class> |
includeThrowableClassList
|
Constructor Summary | |
---|---|
DefaultExceptionPurger()
|
|
DefaultExceptionPurger(Class includeThrowableClass,
Class excludeThrowableClass)
|
|
DefaultExceptionPurger(List<Class> includeThrowableClassList,
List<Class> excludeThrowableClassList)
|
Method Summary | |
---|---|
protected boolean |
containedIn(Throwable e,
List<Class> throwableClassList)
|
Throwable |
purge(Throwable root)
Purges the throwable to unwrap it to find the most suitable throwable to evaluate or handle. |
void |
setExcludeThrowableClass(Class excludeThrowableClass)
See @{link setExcludeThrowableClassList(List) . |
void |
setExcludeThrowableClassList(List<Class> excludeThrowableClassList)
Sets Throwables that if found, its cause is unwrapped. |
void |
setIncludeThrowableClass(Class includeThrowableClass)
See @{link setIncludeThrowableClassList(List) . |
void |
setIncludeThrowableClassList(List<Class> includeThrowableClassList)
Sets Throwables that if found, are unwrapped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<Class> includeThrowableClassList
protected List<Class> excludeThrowableClassList
Constructor Detail |
---|
public DefaultExceptionPurger()
public DefaultExceptionPurger(Class includeThrowableClass, Class excludeThrowableClass)
public DefaultExceptionPurger(List<Class> includeThrowableClassList, List<Class> excludeThrowableClassList)
Method Detail |
---|
public void setIncludeThrowableClass(Class includeThrowableClass)
setIncludeThrowableClassList(List)
.
includeThrowableClass
- used as a singleton list for includeThrowableClassListpublic void setIncludeThrowableClassList(List<Class> includeThrowableClassList)
includeThrowableClassList
- a list of classespublic void setExcludeThrowableClass(Class excludeThrowableClass)
setExcludeThrowableClassList(List)
.
excludeThrowableClass
- used as a singleton list for excludeThrowableClassListpublic void setExcludeThrowableClassList(List<Class> excludeThrowableClassList)
excludeThrowableClassList
- a list of classespublic Throwable purge(Throwable root)
ExceptionPurger
purge
in interface ExceptionPurger
root
- the root exception or error
protected boolean containedIn(Throwable e, List<Class> throwableClassList)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |