Class BeanNotOfRequiredTypeFailureAnalyzer
java.lang.Object
org.springframework.boot.diagnostics.AbstractFailureAnalyzer<org.springframework.beans.factory.BeanNotOfRequiredTypeException>
org.springframework.boot.diagnostics.analyzer.BeanNotOfRequiredTypeFailureAnalyzer
- All Implemented Interfaces:
FailureAnalyzer
public class BeanNotOfRequiredTypeFailureAnalyzer
extends AbstractFailureAnalyzer<org.springframework.beans.factory.BeanNotOfRequiredTypeException>
An
AbstractFailureAnalyzer
that performs analysis of failures caused by a
BeanNotOfRequiredTypeException
.- Since:
- 1.4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FailureAnalysis
analyze
(Throwable rootFailure, org.springframework.beans.factory.BeanNotOfRequiredTypeException cause) Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.Methods inherited from class org.springframework.boot.diagnostics.AbstractFailureAnalyzer
analyze, findCause, getCauseType
-
Constructor Details
-
BeanNotOfRequiredTypeFailureAnalyzer
public BeanNotOfRequiredTypeFailureAnalyzer()
-
-
Method Details
-
analyze
protected FailureAnalysis analyze(Throwable rootFailure, org.springframework.beans.factory.BeanNotOfRequiredTypeException cause) Description copied from class:AbstractFailureAnalyzer
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- Specified by:
analyze
in classAbstractFailureAnalyzer<org.springframework.beans.factory.BeanNotOfRequiredTypeException>
- Parameters:
rootFailure
- the root failure passed to the analyzercause
- the actual found cause- Returns:
- the analysis or
null
-