|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.ioc.util.ExceptionUtils
public class ExceptionUtils
Contains static methods useful for manipulating exceptions.
Constructor Summary | |
---|---|
ExceptionUtils()
|
Method Summary | ||
---|---|---|
static
|
findCause(java.lang.Throwable t,
java.lang.Class<T> type)
Locates a particular type of exception, working its way via the cause property of each exception in the exception stack. |
|
static
|
findCause(java.lang.Throwable t,
java.lang.Class<T> type,
PropertyAccess access)
Locates a particular type of exception, working its way down via any property that returns some type of Exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionUtils()
Method Detail |
---|
public static <T extends java.lang.Throwable> T findCause(java.lang.Throwable t, java.lang.Class<T> type)
t
- the outermost exceptiontype
- the type of exception to search for
public static <T extends java.lang.Throwable> T findCause(java.lang.Throwable t, java.lang.Class<T> type, PropertyAccess access)
findCause(Throwable, Class)
as it works with older exceptions
that do not properly implement the (relatively new) cause property.
t
- the outermost exceptiontype
- the type of exception to search foraccess
- used to access properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |