findCause() — spring-boot Function Reference
Architecture documentation for the findCause() function in AbstractFailureAnalyzer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 01bddb9a_8a21_d376_4852_540eba6ef8e8["findCause()"] b32bd4ba_4c95_b76c_e666_aa713bed5057["analyze()"] b32bd4ba_4c95_b76c_e666_aa713bed5057 -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 ec11b7fc_d191_7572_c238_34d1e7b79001["getMessage()"] ec11b7fc_d191_7572_c238_34d1e7b79001 -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 3120aeb1_048c_cc67_6346_7c7fb29b8cf7["findValidValues()"] 3120aeb1_048c_cc67_6346_7c7fb29b8cf7 -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 4a62e010_5086_b3d8_53cb_d40fe72fef0b["getBindValidationExceptionDetails()"] 4a62e010_5086_b3d8_53cb_d40fe72fef0b -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 841cf232_de0d_429d_f868_f8d8561dd3f3["analyze()"] 841cf232_de0d_429d_f868_f8d8561dd3f3 -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 aa67b546_7f1a_7d89_47a2_4406461eeaf5["analyze()"] aa67b546_7f1a_7d89_47a2_4406461eeaf5 -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 style 01bddb9a_8a21_d376_4852_540eba6ef8e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/diagnostics/AbstractFailureAnalyzer.java lines 63–72
@SuppressWarnings("unchecked")
protected final <E extends Throwable> @Nullable E findCause(@Nullable Throwable failure, Class<E> type) {
while (failure != null) {
if (type.isInstance(failure)) {
return (E) failure;
}
failure = failure.getCause();
}
return null;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does findCause() do?
findCause() is a function in the spring-boot codebase.
What calls findCause()?
findCause() is called by 6 function(s): analyze, analyze, analyze, findValidValues, getBindValidationExceptionDetails, getMessage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free