|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.lang.Exceptions
public class Exceptions
Nested Class Summary | |
---|---|
static interface |
Exceptions.IThrowableVisitor<T>
Visitor used to visit Throwable chains |
static class |
Exceptions.Visit<T>
Represents a visit |
Method Summary | ||
---|---|---|
static
|
findCause(java.lang.Throwable throwable,
java.lang.Class<T> causeType)
Looks for a cause of the specified type in throwable's chain |
|
java.lang.Throwable |
getRootCause(java.lang.Throwable throwable)
Gets root cause of the throwable |
|
static
|
visit(java.lang.Throwable throwable,
Exceptions.IThrowableVisitor<T> visitor)
Visits the Throwable 's chain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Throwable getRootCause(java.lang.Throwable throwable)
throwable
-
public static <T extends java.lang.Throwable> T findCause(java.lang.Throwable throwable, java.lang.Class<T> causeType)
T
- throwable
- causeType
-
Throwable
in the chain or null
if nonepublic static <T> T visit(java.lang.Throwable throwable, Exceptions.IThrowableVisitor<T> visitor)
Throwable
's chain
T
- throwable
- visitor
-
null
if none
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |