java.lang.Object
org.apache.wicket.util.lang.Exceptions
- Author:
- igor.vaynberg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Visitor used to visitThrowable
chainsstatic class
Represents 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> T
visit
(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
Throwable
in the chain ornull
if none
-
visit
Visits theThrowable
's chain- Type Parameters:
T
-- Parameters:
throwable
-visitor
-- Returns:
- result set on visitor or
null
if none
-