Home / Function/ exceptionCaught() — netty Function Reference

exceptionCaught() — netty Function Reference

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

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  6d5c26f8_b0b4_a613_e7c9_27748639d0b3["exceptionCaught()"]
  0233e67b_aa3b_d75b_4c03_f8c1ecbc9db1["ApplicationProtocolNegotiationHandler"]
  6d5c26f8_b0b4_a613_e7c9_27748639d0b3 -->|defined in| 0233e67b_aa3b_d75b_4c03_f8c1ecbc9db1
  880f358e_d7d7_b607_f597_19124ca4364e["userEventTriggered()"]
  880f358e_d7d7_b607_f597_19124ca4364e -->|calls| 6d5c26f8_b0b4_a613_e7c9_27748639d0b3
  6e83dea8_36d9_a481_62de_f87541b25143["handshakeFailure()"]
  6d5c26f8_b0b4_a613_e7c9_27748639d0b3 -->|calls| 6e83dea8_36d9_a481_62de_f87541b25143
  ff97ac71_5935_7324_8055_fd73efd9c995["removeSelfIfPresent()"]
  6d5c26f8_b0b4_a613_e7c9_27748639d0b3 -->|calls| ff97ac71_5935_7324_8055_fd73efd9c995
  style 6d5c26f8_b0b4_a613_e7c9_27748639d0b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandler.java lines 195–209

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
        Throwable wrapped;
        if (cause instanceof DecoderException && ((wrapped = cause.getCause()) instanceof SSLException)) {
            try {
                handshakeFailure(ctx, wrapped);
                return;
            } finally {
                removeSelfIfPresent(ctx);
            }
        }
        logger.warn("{} Failed to select the application-level protocol:", ctx.channel(), cause);
        ctx.fireExceptionCaught(cause);
        ctx.close();
    }

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/ApplicationProtocolNegotiationHandler.java.
Where is exceptionCaught() defined?
exceptionCaught() is defined in handler/src/main/java/io/netty/handler/ssl/ApplicationProtocolNegotiationHandler.java at line 195.
What does exceptionCaught() call?
exceptionCaught() calls 2 function(s): handshakeFailure, removeSelfIfPresent.
What calls exceptionCaught()?
exceptionCaught() is called by 1 function(s): userEventTriggered.

Analyze Your Own Codebase

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

Try Supermodel Free