getBindValidationExceptionDetails() — spring-boot Function Reference
Architecture documentation for the getBindValidationExceptionDetails() function in BindValidationFailureAnalyzer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 4a62e010_5086_b3d8_53cb_d40fe72fef0b["getBindValidationExceptionDetails()"] 87e03158_e46f_9651_afa9_dd43a2278291["analyze()"] 87e03158_e46f_9651_afa9_dd43a2278291 -->|calls| 4a62e010_5086_b3d8_53cb_d40fe72fef0b 01bddb9a_8a21_d376_4852_540eba6ef8e8["findCause()"] 4a62e010_5086_b3d8_53cb_d40fe72fef0b -->|calls| 01bddb9a_8a21_d376_4852_540eba6ef8e8 8179e069_eae4_23cf_649e_8f08300e0b77["getValidationErrors()"] 4a62e010_5086_b3d8_53cb_d40fe72fef0b -->|calls| 8179e069_eae4_23cf_649e_8f08300e0b77 dea2d3bf_cc4a_4961_bcd2_29cd5d9515a8["ExceptionDetails()"] 4a62e010_5086_b3d8_53cb_d40fe72fef0b -->|calls| dea2d3bf_cc4a_4961_bcd2_29cd5d9515a8 7d8a0702_14fc_bfc1_a260_01517a11c0db["getTarget()"] 4a62e010_5086_b3d8_53cb_d40fe72fef0b -->|calls| 7d8a0702_14fc_bfc1_a260_01517a11c0db style 4a62e010_5086_b3d8_53cb_d40fe72fef0b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/BindValidationFailureAnalyzer.java lines 50–65
private @Nullable ExceptionDetails getBindValidationExceptionDetails(Throwable rootFailure) {
BindValidationException validationException = findCause(rootFailure, BindValidationException.class);
if (validationException != null) {
BindException bindException = findCause(rootFailure, BindException.class);
List<ObjectError> errors = validationException.getValidationErrors().getAllErrors();
Assert.state(bindException != null, "BindException not found");
return new ExceptionDetails(errors, bindException.getTarget().getType(), validationException);
}
org.springframework.validation.BindException bindException = findCause(rootFailure,
org.springframework.validation.BindException.class);
if (bindException != null) {
List<ObjectError> errors = bindException.getAllErrors();
return new ExceptionDetails(errors, bindException.getTarget(), bindException);
}
return null;
}
Domain
Subdomains
Calls
- ExceptionDetails()
- findCause()
- getTarget()
- getValidationErrors()
Called By
Source
Frequently Asked Questions
What does getBindValidationExceptionDetails() do?
getBindValidationExceptionDetails() is a function in the spring-boot codebase.
What does getBindValidationExceptionDetails() call?
getBindValidationExceptionDetails() calls 4 function(s): ExceptionDetails, findCause, getTarget, getValidationErrors.
What calls getBindValidationExceptionDetails()?
getBindValidationExceptionDetails() 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