类 AbstractInjectionFailureAnalyzer<T extends Throwable>
- java.lang.Object
- org.springframework.boot.diagnostics.AbstractFailureAnalyzer<T>
- org.springframework.boot.diagnostics.analyzer.AbstractInjectionFailureAnalyzer<T>
- 类型参数:
T
- the type of exception to analyze
- 所有已实现的接口:
FailureAnalyzer
public abstract class AbstractInjectionFailureAnalyzer<T extends Throwable> extends AbstractFailureAnalyzer<T>
Abstract base class for aFailureAnalyzer
that handles some kind of injection failure.- 从以下版本开始:
- 1.4.1
构造器概要
构造器 构造器 说明 AbstractInjectionFailureAnalyzer()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected FailureAnalysis
analyze(Throwable rootFailure, T cause)
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.protected abstract FailureAnalysis
analyze(Throwable rootFailure, T cause, String description)
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.从类继承的方法 org.springframework.boot.diagnostics.AbstractFailureAnalyzer
analyze, findCause, getCauseType
构造器详细资料
AbstractInjectionFailureAnalyzer
public AbstractInjectionFailureAnalyzer()
方法详细资料
analyze
protected final FailureAnalysis analyze(Throwable rootFailure, T cause)
从类复制的说明:AbstractFailureAnalyzer
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- 指定者:
analyze
在类中AbstractFailureAnalyzer<T extends Throwable>
- 参数:
rootFailure
- the root failure passed to the analyzercause
- the actual found cause- 返回:
- the analysis or
null
analyze
protected abstract FailureAnalysis analyze(Throwable rootFailure, T cause, String description)
Returns an analysis of the givenrootFailure
, ornull
if no analysis was possible.- 参数:
rootFailure
- the root failure passed to the analyzercause
- the actual found causedescription
- the description of the injection point ornull
- 返回:
- the analysis or
null