Class FailureAnalysis
java.lang.Object
org.springframework.boot.diagnostics.FailureAnalysis
The result of analyzing a failure.
- Since:
- 1.4.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorsConstructorDescriptionFailureAnalysis(String description, String action, Throwable cause) Creates a newFailureAnalysiswith the givendescriptionandaction, if any, that the user should take to address the problem. -
Method Summary
-
Constructor Details
-
FailureAnalysis
Creates a newFailureAnalysiswith the givendescriptionandaction, 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 Details
-
getDescription
Returns a description of the failure.- Returns:
- the description
-
getAction
Returns the action, if any, to be taken to address the failure.- Returns:
- the action or
null
-
getCause
Returns the cause of the failure.- Returns:
- the cause
-