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)
FailureAnalyzer
failure
, or null
if no analysis
was possible.analyze
in interface FailureAnalyzer
failure
- the failurenull
protected 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 causenull
protected Class<? extends T> getCauseType()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.