类 FailureAnalysis
- java.lang.Object
- org.springframework.boot.diagnostics.FailureAnalysis
public class FailureAnalysis extends Object
The result of analyzing a failure.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 FailureAnalysis(String description, String action, Throwable cause)
Creates a newFailureAnalysis
with the givendescription
andaction
, if any, that the user should take to address the problem.
构造器详细资料
FailureAnalysis
public FailureAnalysis(String description, String action, Throwable cause)
Creates a newFailureAnalysis
with the givendescription
andaction
, if any, that the user should take to address the problem. The failure had the given underlyingcause
.- 参数:
description
- the descriptionaction
- the actioncause
- the cause
方法详细资料
getDescription
public String getDescription()
Returns a description of the failure.- 返回:
- the description
getAction
public String getAction()
Returns the action, if any, to be taken to address the failure.- 返回:
- the action or
null