Home / Function/ exceptionCaught() — netty Function Reference

exceptionCaught() — netty Function Reference

Architecture documentation for the exceptionCaught() function in SslHandler.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  04c08bc3_3cb7_7c02_dac5_71e493257fd0["exceptionCaught()"]
  d8b07a7c_44f8_c4e9_efe8_49bfae7d4af1["SslHandler"]
  04c08bc3_3cb7_7c02_dac5_71e493257fd0 -->|defined in| d8b07a7c_44f8_c4e9_efe8_49bfae7d4af1
  eb5ae59b_9b70_8065_9fe5_48f1bb487718["decodeJdkCompatible()"]
  eb5ae59b_9b70_8065_9fe5_48f1bb487718 -->|calls| 04c08bc3_3cb7_7c02_dac5_71e493257fd0
  6f2ad3ca_d892_92d8_e5db_c67eb1473ab2["safeExceptionCaught()"]
  6f2ad3ca_d892_92d8_e5db_c67eb1473ab2 -->|calls| 04c08bc3_3cb7_7c02_dac5_71e493257fd0
  fadbcb7a_9bc0_4aa0_11c8_f1988daaec89["ignoreException()"]
  04c08bc3_3cb7_7c02_dac5_71e493257fd0 -->|calls| fadbcb7a_9bc0_4aa0_11c8_f1988daaec89
  49028cb7_a127_0716_20ed_4fc1e1c7c988["close()"]
  04c08bc3_3cb7_7c02_dac5_71e493257fd0 -->|calls| 49028cb7_a127_0716_20ed_4fc1e1c7c988
  style 04c08bc3_3cb7_7c02_dac5_71e493257fd0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/SslHandler.java lines 1216–1235

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
        if (ignoreException(cause)) {
            // It is safe to ignore the 'connection reset by peer' or
            // 'broken pipe' error after sending close_notify.
            if (logger.isDebugEnabled()) {
                logger.debug(
                        "{} Swallowing a harmless 'connection reset by peer / broken pipe' error that occurred " +
                        "while writing close_notify in response to the peer's close_notify", ctx.channel(), cause);
            }

            // Close the connection explicitly just in case the transport
            // did not close the connection automatically.
            if (ctx.channel().isActive()) {
                ctx.close();
            }
        } else {
            ctx.fireExceptionCaught(cause);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does exceptionCaught() do?
exceptionCaught() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java.
Where is exceptionCaught() defined?
exceptionCaught() is defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java at line 1216.
What does exceptionCaught() call?
exceptionCaught() calls 2 function(s): close, ignoreException.
What calls exceptionCaught()?
exceptionCaught() is called by 2 function(s): decodeJdkCompatible, safeExceptionCaught.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free