类 AbstractFailureAnalyzer<T extends Throwable>
- java.lang.Object
- org.springframework.boot.diagnostics.AbstractFailureAnalyzer<T>
- 类型参数:
T
- the type of exception to analyze
- 所有已实现的接口:
FailureAnalyzer
public abstract class AbstractFailureAnalyzer<T extends Throwable> extends Object implements FailureAnalyzer
Abstract base class for mostFailureAnalyzer
implementations.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 AbstractFailureAnalyzer()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 FailureAnalysis
analyze(Throwable failure)
Returns an analysis of the givenfailure
, ornull
if no analysis was possible.protected abstract FailureAnalysis
analyze(Throwable rootFailure, T cause)
Returns an analysis of the givenfailure
, ornull
if no analysis was possible.protected <E extends Throwable>
TfindCause(Throwable failure, Class<E> type)
protected Class<? extends T>
getCauseType()
Return the cause type being handled by the analyzer.
构造器详细资料
AbstractFailureAnalyzer
public AbstractFailureAnalyzer()
方法详细资料
analyze
public FailureAnalysis analyze(Throwable failure)
从接口复制的说明:FailureAnalyzer
Returns an analysis of the givenfailure
, ornull
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 givenfailure
, ornull
if no analysis was possible.- 参数:
rootFailure
- the root failure passed to the analyzercause
- 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