T - the type of exception to analyzepublic abstract class AbstractFailureAnalyzer<T extends java.lang.Throwable> extends java.lang.Object implements FailureAnalyzer
FailureAnalyzer implementations.| Constructor and Description |
|---|
AbstractFailureAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
FailureAnalysis |
analyze(java.lang.Throwable failure)
Returns an analysis of the given
failure, or null if no analysis
was possible. |
protected abstract FailureAnalysis |
analyze(java.lang.Throwable rootFailure,
T cause)
Returns an analysis of the given
rootFailure, or null if no
analysis was possible. |
protected <E extends java.lang.Throwable> |
findCause(java.lang.Throwable failure,
java.lang.Class<E> type) |
protected java.lang.Class<? extends T> |
getCauseType()
Return the cause type being handled by the analyzer.
|
public FailureAnalysis analyze(java.lang.Throwable failure)
FailureAnalyzerfailure, or null if no analysis
was possible.analyze in interface FailureAnalyzerfailure - the failurenullprotected abstract FailureAnalysis analyze(java.lang.Throwable rootFailure, T cause)
rootFailure, or null if no
analysis was possible.rootFailure - the root failure passed to the analyzercause - the actual found causenullprotected java.lang.Class<? extends T> getCauseType()
protected final <E extends java.lang.Throwable> E findCause(java.lang.Throwable failure,
java.lang.Class<E> type)