|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(Throwable throwable,
Class<T> causeType)
Looks for a cause of the specified type in throwable's chain |
|
Throwable |
getRootCause(Throwable throwable)
Gets root cause of the throwable |
|
static
|
visit(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 Throwable getRootCause(Throwable throwable)
throwable
-
public static <T extends Throwable> T findCause(Throwable throwable, Class<T> causeType)
T
- throwable
- causeType
-
Throwable
in the chain or null
if nonepublic static <T> T visit(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 |