Home / Function/ exceptionCaught() — netty Function Reference

exceptionCaught() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  996dbdad_00fa_5b2e_8020_52b967ecbb1f["exceptionCaught()"]
  909b0e90_0599_acbc_32f0_551a36a80b00["StringEchoHandler"]
  996dbdad_00fa_5b2e_8020_52b967ecbb1f -->|defined in| 909b0e90_0599_acbc_32f0_551a36a80b00
  style 996dbdad_00fa_5b2e_8020_52b967ecbb1f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketStringEchoTest.java lines 197–203

        @Override
        public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
            if (exception.compareAndSet(null, cause)) {
                donePromise.tryFailure(new IllegalStateException("exceptionCaught: " + ctx.channel(), cause));
                ctx.close();
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does exceptionCaught() do?
exceptionCaught() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketStringEchoTest.java.
Where is exceptionCaught() defined?
exceptionCaught() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketStringEchoTest.java at line 197.

Analyze Your Own Codebase

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

Try Supermodel Free