customExceptionForwarding() — netty Function Reference
Architecture documentation for the customExceptionForwarding() function in Http2MultiplexHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3f07b529_d623_5fd1_1a8f_d09ce5e41c4e["customExceptionForwarding()"] 4fba49cb_e5ea_a2e3_d051_264ed1bec463["Http2MultiplexHandlerTest"] 3f07b529_d623_5fd1_1a8f_d09ce5e41c4e -->|defined in| 4fba49cb_e5ea_a2e3_d051_264ed1bec463 style 3f07b529_d623_5fd1_1a8f_d09ce5e41c4e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexHandlerTest.java lines 85–111
@Test
public void customExceptionForwarding() {
final LastInboundHandler inboundHandler = new LastInboundHandler();
Http2StreamChannel channel = newInboundStream(3, false, inboundHandler);
assertTrue(channel.isActive());
final RuntimeException testExc = new RuntimeException("xyz");
channel.parent().pipeline().addLast(new ChannelInboundHandlerAdapter() {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
if (cause != testExc) {
super.exceptionCaught(ctx, cause);
} else {
ctx.pipeline().fireExceptionCaught(new Http2MultiplexActiveStreamsException(cause));
}
}
});
channel.parent().pipeline().fireExceptionCaught(testExc);
assertTrue(channel.isActive());
RuntimeException exc = assertThrows(RuntimeException.class, new Executable() {
@Override
public void execute() throws Throwable {
inboundHandler.checkException();
}
});
assertEquals(testExc, exc);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does customExceptionForwarding() do?
customExceptionForwarding() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexHandlerTest.java.
Where is customExceptionForwarding() defined?
customExceptionForwarding() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexHandlerTest.java at line 85.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free