handleExitCode() — spring-boot Function Reference
Architecture documentation for the handleExitCode() function in SpringApplication.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a1057eb9_8bc1_4af2_9e06_f5426baf378a["handleExitCode()"] 05022a74_e101_acfd_dd3f_ee1812535914["handleRunFailure()"] 05022a74_e101_acfd_dd3f_ee1812535914 -->|calls| a1057eb9_8bc1_4af2_9e06_f5426baf378a b5526a13_2583_756b_3feb_7dd28d4609f3["getExitCodeFromException()"] a1057eb9_8bc1_4af2_9e06_f5426baf378a -->|calls| b5526a13_2583_756b_3feb_7dd28d4609f3 42397bc2_1bdd_1edc_b72e_69438be38265["getSpringBootExceptionHandler()"] a1057eb9_8bc1_4af2_9e06_f5426baf378a -->|calls| 42397bc2_1bdd_1edc_b72e_69438be38265 style a1057eb9_8bc1_4af2_9e06_f5426baf378a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 881–892
private void handleExitCode(@Nullable ConfigurableApplicationContext context, Throwable exception) {
int exitCode = getExitCodeFromException(context, exception);
if (exitCode != 0) {
if (context != null) {
context.publishEvent(new ExitCodeEvent(context, exitCode));
}
SpringBootExceptionHandler handler = getSpringBootExceptionHandler();
if (handler != null) {
handler.registerExitCode(exitCode);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handleExitCode() do?
handleExitCode() is a function in the spring-boot codebase.
What does handleExitCode() call?
handleExitCode() calls 2 function(s): getExitCodeFromException, getSpringBootExceptionHandler.
What calls handleExitCode()?
handleExitCode() is called by 1 function(s): handleRunFailure.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free