Class FailureAnalysis
- java.lang.Object
- org.springframework.boot.diagnostics.FailureAnalysis
public class FailureAnalysis extends Object
The result of analyzing a failure.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description 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.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
Returns the action, if any, to be taken to address the failure.Throwable
getCause()
Returns the cause of the failure.String
getDescription()
Returns a description of the failure.
Constructor Detail
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
.- Parameters:
description
- the descriptionaction
- the actioncause
- the cause
Method Detail
getDescription
public String getDescription()
Returns a description of the failure.- Returns:
- the description
getAction
public String getAction()
Returns the action, if any, to be taken to address the failure.- Returns:
- the action or
null