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