analyze() — spring-boot Function Reference
Architecture documentation for the analyze() function in ConfigDataNotFoundFailureAnalyzer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6b7b9876_0de5_d4be_ca21_0c3a05cf56fd["analyze()"] b32bd4ba_4c95_b76c_e666_aa713bed5057["analyze()"] 6b7b9876_0de5_d4be_ca21_0c3a05cf56fd -->|calls| b32bd4ba_4c95_b76c_e666_aa713bed5057 08508cab_1bcc_87aa_71d3_1bb376775216["getLocation()"] 6b7b9876_0de5_d4be_ca21_0c3a05cf56fd -->|calls| 08508cab_1bcc_87aa_71d3_1bb376775216 1c0a452a_a003_0ab7_8926_72358d1266ed["FailureAnalysis()"] 6b7b9876_0de5_d4be_ca21_0c3a05cf56fd -->|calls| 1c0a452a_a003_0ab7_8926_72358d1266ed style 6b7b9876_0de5_d4be_ca21_0c3a05cf56fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataNotFoundFailureAnalyzer.java lines 34–51
@Override
protected FailureAnalysis analyze(Throwable rootFailure, ConfigDataNotFoundException cause) {
ConfigDataLocation location = getLocation(cause);
Origin origin = Origin.from(location);
String message = String.format("Config data %s does not exist", cause.getReferenceDescription());
StringBuilder action = new StringBuilder("Check that the value ");
if (location != null) {
action.append(String.format("'%s' ", location));
}
if (origin != null) {
action.append(String.format("at %s ", origin));
}
action.append("is correct");
if (location != null && !location.isOptional()) {
action.append(String.format(", or prefix it with '%s'", ConfigDataLocation.OPTIONAL_PREFIX));
}
return new FailureAnalysis(message, action.toString(), cause);
}
Domain
Subdomains
Calls
- FailureAnalysis()
- analyze()
- getLocation()
Source
Frequently Asked Questions
What does analyze() do?
analyze() is a function in the spring-boot codebase.
What does analyze() call?
analyze() calls 3 function(s): FailureAnalysis, analyze, getLocation.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free