org.springframework.boot.diagnostics.analyzer

Class AbstractInjectionFailureAnalyzer<T extends Throwable>

  • Type Parameters:
    T - the type of exception to analyze
    All Implemented Interfaces:
    FailureAnalyzer


    public abstract class AbstractInjectionFailureAnalyzer<T extends Throwable>
    extends AbstractFailureAnalyzer<T>
    Abstract base class for a FailureAnalyzer that handles some kind of injection failure.
    Since:
    1.4.1
    Author:
    Andy Wilkinson, Stephane Nicoll
    • Constructor Detail

      • AbstractInjectionFailureAnalyzer

        public AbstractInjectionFailureAnalyzer()
    • Method Detail

      • analyze

        protected abstract FailureAnalysis analyze(Throwable rootFailure,
                                                   T cause,
                                                   String description)
        Returns an analysis of the given rootFailure, or null if no analysis was possible.
        Parameters:
        rootFailure - the root failure passed to the analyzer
        cause - the actual found cause
        description - the description of the injection point or null
        Returns:
        the analysis or null