类 AbstractFailureAnalyzer<T extends Throwable>

java.lang.Object
org.springframework.boot.diagnostics.AbstractFailureAnalyzer<T>
类型参数:
T - the type of exception to analyze
所有已实现的接口:
FailureAnalyzer
直接已知子类:
AbstractInjectionFailureAnalyzer, BeanNotOfRequiredTypeFailureAnalyzer

public abstract class AbstractFailureAnalyzer<T extends Throwable> extends Object implements FailureAnalyzer
Abstract base class for most FailureAnalyzer implementations.
从以下版本开始:
1.4.0
作者:
Andy Wilkinson, Phillip Webb
  • 构造器详细资料

    • AbstractFailureAnalyzer

      public AbstractFailureAnalyzer()
  • 方法详细资料

    • analyze

      public FailureAnalysis analyze(Throwable failure)
      从接口复制的说明: FailureAnalyzer
      Returns an analysis of the given failure, or null if no analysis was possible.
      指定者:
      analyze 在接口中 FailureAnalyzer
      参数:
      failure - the failure
      返回:
      the analysis or null
    • analyze

      protected abstract FailureAnalysis analyze(Throwable rootFailure, T cause)
      Returns an analysis of the given rootFailure, or null if no analysis was possible.
      参数:
      rootFailure - the root failure passed to the analyzer
      cause - the actual found cause
      返回:
      the analysis or null
    • getCauseType

      protected Class<? extends T> getCauseType()
      Return the cause type being handled by the analyzer. By default the class generic is used.
      返回:
      the cause type
    • findCause

      protected final <E extends Throwable> E findCause(Throwable failure, Class<E> type)