接口 FailureAnalyzer

所有已知实现类:
AbstractFailureAnalyzer, AbstractInjectionFailureAnalyzer, BeanNotOfRequiredTypeFailureAnalyzer
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface FailureAnalyzer
A FailureAnalyzer is used to analyze a failure and provide diagnostic information that can be displayed to the user.
从以下版本开始:
1.4.0
作者:
Andy Wilkinson
  • 方法概要

    修饰符和类型
    方法
    说明
    analyze(Throwable failure)
    Returns an analysis of the given failure, or null if no analysis was possible.
  • 方法详细资料

    • analyze

      FailureAnalysis analyze(Throwable failure)
      Returns an analysis of the given failure, or null if no analysis was possible.
      参数:
      failure - the failure
      返回:
      the analysis or null