Class AbstractInjectionFailureAnalyzer<T extends Throwable>

java.lang.Object
org.springframework.boot.diagnostics.AbstractFailureAnalyzer<T>
org.springframework.boot.diagnostics.analyzer.AbstractInjectionFailureAnalyzer<T>
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
  • Constructor Details

    • AbstractInjectionFailureAnalyzer

      public AbstractInjectionFailureAnalyzer()
  • Method Details

    • analyze

      protected final FailureAnalysis analyze(Throwable rootFailure, T cause)
      Description copied from class: AbstractFailureAnalyzer
      Returns an analysis of the given rootFailure, or null if no analysis was possible.
      Specified by:
      analyze in class AbstractFailureAnalyzer<T extends Throwable>
      Parameters:
      rootFailure - the root failure passed to the analyzer
      cause - the actual found cause
      Returns:
      the analysis or null
    • 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