类 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 most
FailureAnalyzer
implementations.- 从以下版本开始:
- 1.4.0
- 作者:
- Andy Wilkinson, Phillip Webb
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns an analysis of the givenfailure
, ornull
if no analysis was possible.protected abstract FailureAnalysis
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.protected final <E extends Throwable>
EReturn the cause type being handled by the analyzer.
-
构造器详细资料
-
AbstractFailureAnalyzer
public AbstractFailureAnalyzer()
-
-
方法详细资料
-
analyze
从接口复制的说明:FailureAnalyzer
Returns an analysis of the givenfailure
, ornull
if no analysis was possible.- 指定者:
analyze
在接口中FailureAnalyzer
- 参数:
failure
- the failure- 返回:
- the analysis or
null
-
analyze
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- 参数:
rootFailure
- the root failure passed to the analyzercause
- the actual found cause- 返回:
- the analysis or
null
-
getCauseType
Return the cause type being handled by the analyzer. By default the class generic is used.- 返回:
- the cause type
-
findCause
-