Class BeanNotOfRequiredTypeFailureAnalyzer
java.lang.Object
org.springframework.boot.diagnostics.AbstractFailureAnalyzer<BeanNotOfRequiredTypeException>
org.springframework.boot.diagnostics.analyzer.BeanNotOfRequiredTypeFailureAnalyzer
- All Implemented Interfaces:
FailureAnalyzer
public class BeanNotOfRequiredTypeFailureAnalyzer
extends AbstractFailureAnalyzer<BeanNotOfRequiredTypeException>
An
AbstractFailureAnalyzer
that performs analysis of failures caused by a
BeanNotOfRequiredTypeException
.- Since:
- 1.4.0
- Author:
- Andy Wilkinson, Scott Frederick
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FailureAnalysis
analyze
(Throwable rootFailure, 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
Description copied from class:AbstractFailureAnalyzer
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- Specified by:
analyze
in classAbstractFailureAnalyzer<BeanNotOfRequiredTypeException>
- Parameters:
rootFailure
- the root failure passed to the analyzercause
- the actual found cause- Returns:
- the analysis or
null
-