java.lang.Object
org.apache.wicket.util.lang.Exceptions
- Author:
- igor.vaynberg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceVisitor used to visitThrowablechainsstatic classRepresents a visit -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Throwable>
TLooks for a cause of the specified type in throwable's chaingetRootCause(Throwable throwable) Gets root cause of the throwablestatic <T> Tvisit(Throwable throwable, Exceptions.IThrowableVisitor<T> visitor) Visits theThrowable's chain
-
Method Details
-
getRootCause
Gets root cause of the throwable- Parameters:
throwable-- Returns:
- root cause
-
findCause
Looks for a cause of the specified type in throwable's chain- Type Parameters:
T-- Parameters:
throwable-causeType-- Returns:
- matched
Throwablein the chain ornullif none
-
visit
Visits theThrowable's chain- Type Parameters:
T-- Parameters:
throwable-visitor-- Returns:
- result set on visitor or
nullif none
-