Class FailureAnalyzedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.diagnostics.FailureAnalyzedException
- All Implemented Interfaces:
Serializable
RuntimeException that includes a FailureAnalysis.- Since:
- 4.1.0
- Author:
- Phillip Webb
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFailureAnalyzedException(String description, @Nullable String action) Create a newFailureAnalyzedExceptioninstance.FailureAnalyzedException(String description, @Nullable String action, Throwable cause) Create a newFailureAnalyzedExceptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionanalysis()Return theFailureAnalysisto use for this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailureAnalyzedException
Create a newFailureAnalyzedExceptioninstance.- Parameters:
description- theFailureAnalysisdescriptionaction- theFailureAnalysisaction
-
FailureAnalyzedException
Create a newFailureAnalyzedExceptioninstance.- Parameters:
description- theFailureAnalysisdescriptionaction- theFailureAnalysisactioncause- the cause of the exception
-
-
Method Details
-
analysis
Return theFailureAnalysisto use for this exception.- Returns:
- the failure analysis
-