Class AbstractFailureAnalyzer<T extends Throwable>
java.lang.Object
org.springframework.boot.diagnostics.AbstractFailureAnalyzer<T>
- Type Parameters:
- T- the type of exception to analyze
- All Implemented Interfaces:
- FailureAnalyzer
- Direct Known Subclasses:
- AbstractInjectionFailureAnalyzer,- BeanNotOfRequiredTypeFailureAnalyzer
public abstract class AbstractFailureAnalyzer<T extends Throwable>
extends Object
implements FailureAnalyzer
Abstract base class for most 
FailureAnalyzer implementations.- Since:
- 1.4.0
- Author:
- Andy Wilkinson, Phillip Webb
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns an analysis of the givenfailure, ornullif no analysis was possible.protected abstract FailureAnalysisReturns an analysis of the givenrootFailure, ornullif no analysis was possible.protected final <E extends Throwable>
 EReturn the cause type being handled by the analyzer.
- 
Constructor Details- 
AbstractFailureAnalyzerpublic AbstractFailureAnalyzer()
 
- 
- 
Method Details- 
analyzeDescription copied from interface:FailureAnalyzerReturns an analysis of the givenfailure, ornullif no analysis was possible.- Specified by:
- analyzein interface- FailureAnalyzer
- Parameters:
- failure- the failure
- Returns:
- the analysis or null
 
- 
analyzeReturns an analysis of the givenrootFailure, ornullif no analysis was possible.- Parameters:
- rootFailure- the root failure passed to the analyzer
- cause- the actual found cause
- Returns:
- the analysis or null
 
- 
getCauseTypeReturn the cause type being handled by the analyzer. By default the class generic is used.- Returns:
- the cause type
 
- 
findCause
 
-