getDescription() — spring-boot Function Reference
Architecture documentation for the getDescription() function in NoSuchMethodFailureAnalyzer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ca1e3a73_3c43_9219_377f_2f7b9099088b["getDescription()"] 0dd98b3a_062f_25d7_e4dc_56d59adb88f7["analyze()"] 0dd98b3a_062f_25d7_e4dc_56d59adb88f7 -->|calls| ca1e3a73_3c43_9219_377f_2f7b9099088b ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48 e912f177_db1f_5fb5_7cbb_553e5ea70451["getErrorMessage()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| e912f177_db1f_5fb5_7cbb_553e5ea70451 f2a9d543_afc3_fe95_fc45_8eaa115cbfdc["getCandidateLocations()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| f2a9d543_afc3_fe95_fc45_8eaa115cbfdc 5764ccab_2be8_487f_62a0_119198f8430f["getClassName()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| 5764ccab_2be8_487f_62a0_119198f8430f e526d64b_6d33_b924_4700_ee127c387185["getLocation()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| e526d64b_6d33_b924_4700_ee127c387185 ea38867b_f64a_731f_95b0_8505cabecb33["getName()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| ea38867b_f64a_731f_95b0_8505cabecb33 ba96dda0_314d_f09a_b707_6e3ff662fe37["getTypeHierarchy()"] ca1e3a73_3c43_9219_377f_2f7b9099088b -->|calls| ba96dda0_314d_f09a_b707_6e3ff662fe37 style ca1e3a73_3c43_9219_377f_2f7b9099088b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzer.java lines 153–198
private String getDescription(NoSuchMethodDescriptor callerDescriptor, NoSuchMethodDescriptor calledDescriptor) {
StringWriter description = new StringWriter();
PrintWriter writer = new PrintWriter(description);
writer.println("An attempt was made to call a method that does not"
+ " exist. The attempt was made from the following location:");
writer.println();
writer.printf(" %s%n", callerDescriptor.getErrorMessage());
writer.println();
writer.println("The following method did not exist:");
writer.println();
writer.printf(" %s%n", calledDescriptor.getErrorMessage());
writer.println();
if (callerDescriptor.getCandidateLocations().size() > 1) {
writer.printf("The calling method's class, %s, is available from the following locations:%n",
callerDescriptor.getClassName());
writer.println();
for (URL candidate : callerDescriptor.getCandidateLocations()) {
writer.printf(" %s%n", candidate);
}
writer.println();
writer.println("The calling method's class was loaded from the following location:");
writer.println();
writer.printf(" %s%n", callerDescriptor.getTypeHierarchy().get(0).getLocation());
}
else {
writer.printf("The calling method's class, %s, was loaded from the following location:%n",
callerDescriptor.getClassName());
writer.println();
writer.printf(" %s%n", callerDescriptor.getCandidateLocations().get(0));
}
writer.println();
writer.printf("The called method's class, %s, is available from the following locations:%n",
calledDescriptor.getClassName());
writer.println();
for (URL candidate : calledDescriptor.getCandidateLocations()) {
writer.printf(" %s%n", candidate);
}
writer.println();
writer.println("The called method's class hierarchy was loaded from the following locations:");
writer.println();
for (ClassDescriptor type : calledDescriptor.getTypeHierarchy()) {
writer.printf(" %s: %s%n", type.getName(), type.getLocation());
}
return description.toString();
}
Domain
Subdomains
Calls
- getCandidateLocations()
- getClassName()
- getDescription()
- getErrorMessage()
- getLocation()
- getName()
- getTypeHierarchy()
Called By
Source
Frequently Asked Questions
What does getDescription() do?
getDescription() is a function in the spring-boot codebase.
What does getDescription() call?
getDescription() calls 7 function(s): getCandidateLocations, getClassName, getDescription, getErrorMessage, getLocation, getName, getTypeHierarchy.
What calls getDescription()?
getDescription() is called by 1 function(s): analyze.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free