FailureAnalysis Class — spring-boot Architecture
Architecture documentation for the FailureAnalysis class in FailureAnalysis.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalysis.java lines 27–73
public class FailureAnalysis {
private final String description;
private final @Nullable String action;
private final Throwable cause;
/**
* Creates a new {@code FailureAnalysis} with the given {@code description} and
* {@code action}, if any, that the user should take to address the problem. The
* failure had the given underlying {@code cause}.
* @param description the description
* @param action the action
* @param cause the cause
*/
public FailureAnalysis(@Nullable String description, @Nullable String action, Throwable cause) {
this.description = (description != null) ? description : "";
this.action = action;
this.cause = cause;
}
/**
* Returns a description of the failure.
* @return the description
*/
public String getDescription() {
return this.description;
}
/**
* Returns the action, if any, to be taken to address the failure.
* @return the action or {@code null}
*/
public @Nullable String getAction() {
return this.action;
}
/**
* Returns the cause of the failure.
* @return the cause
*/
public Throwable getCause() {
return this.cause;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free