类 FailureAnalysis
java.lang.Object
org.springframework.boot.diagnostics.FailureAnalysis
The result of analyzing a failure.
- 从以下版本开始:
- 1.4.0
- 作者:
- Andy Wilkinson
-
构造器概要
构造器构造器说明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
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
Returns a description of the failure.- 返回:
- the description
-
getAction
Returns the action, if any, to be taken to address the failure.- 返回:
- the action or
null
-
getCause
Returns the cause of the failure.- 返回:
- the cause
-