handleException() — netty Function Reference
Architecture documentation for the handleException() function in SslHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c148524_5863_9fd9_17ef_b36c8e32fd70["handleException()"] 4971d882_98ff_3ffd_f66b_31ea649497b3["SslTasksRunner"] 8c148524_5863_9fd9_17ef_b36c8e32fd70 -->|defined in| 4971d882_98ff_3ffd_f66b_31ea649497b3 3832f383_3ba5_2efc_b7fe_c77da2d88b3e["run()"] 3832f383_3ba5_2efc_b7fe_c77da2d88b3e -->|calls| 8c148524_5863_9fd9_17ef_b36c8e32fd70 c424fd0b_8c85_a9c8_f54b_4dd373f93722["inEventLoop()"] 8c148524_5863_9fd9_17ef_b36c8e32fd70 -->|calls| c424fd0b_8c85_a9c8_f54b_4dd373f93722 5fccc820_4d5c_02e0_7572_31b2a69fd790["clearState()"] 8c148524_5863_9fd9_17ef_b36c8e32fd70 -->|calls| 5fccc820_4d5c_02e0_7572_31b2a69fd790 6f2ad3ca_d892_92d8_e5db_c67eb1473ab2["safeExceptionCaught()"] 8c148524_5863_9fd9_17ef_b36c8e32fd70 -->|calls| 6f2ad3ca_d892_92d8_e5db_c67eb1473ab2 f0428da0_54a3_9dcb_eefb_1da6c347f719["run()"] 8c148524_5863_9fd9_17ef_b36c8e32fd70 -->|calls| f0428da0_54a3_9dcb_eefb_1da6c347f719 style 8c148524_5863_9fd9_17ef_b36c8e32fd70 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/SslHandler.java lines 1961–1982
private void handleException(final Throwable cause) {
EventExecutor executor = ctx.executor();
if (executor.inEventLoop()) {
clearState(STATE_PROCESS_TASK);
safeExceptionCaught(cause);
} else {
try {
executor.execute(new Runnable() {
@Override
public void run() {
clearState(STATE_PROCESS_TASK);
safeExceptionCaught(cause);
}
});
} catch (RejectedExecutionException ignore) {
clearState(STATE_PROCESS_TASK);
// the context itself will handle the rejected exception when try to schedule the operation so
// ignore the RejectedExecutionException
ctx.fireExceptionCaught(cause);
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handleException() do?
handleException() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java.
Where is handleException() defined?
handleException() is defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java at line 1961.
What does handleException() call?
handleException() calls 4 function(s): clearState, inEventLoop, run, safeExceptionCaught.
What calls handleException()?
handleException() is called by 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free