Home / Function/ exceptionCaught() — netty Function Reference

exceptionCaught() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5e5d62b0_fe15_27cf_64eb_7b9de2721c3c["exceptionCaught()"]
  bfe8a22c_48cc_17d2_2d18_ebe39ee40e8f["FileServerHandler"]
  5e5d62b0_fe15_27cf_64eb_7b9de2721c3c -->|defined in| bfe8a22c_48cc_17d2_2d18_ebe39ee40e8f
  style 5e5d62b0_fe15_27cf_64eb_7b9de2721c3c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/file/FileServerHandler.java lines 62–71

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        cause.printStackTrace();

        if (ctx.channel().isActive()) {
            ctx.writeAndFlush("ERR: " +
                    cause.getClass().getSimpleName() + ": " +
                    cause.getMessage() + '\n').addListener(ChannelFutureListener.CLOSE);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does exceptionCaught() do?
exceptionCaught() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/file/FileServerHandler.java.
Where is exceptionCaught() defined?
exceptionCaught() is defined in example/src/main/java/io/netty/example/file/FileServerHandler.java at line 62.

Analyze Your Own Codebase

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

Try Supermodel Free