Home / Function/ onHttp2FrameStreamException() — netty Function Reference

onHttp2FrameStreamException() — netty Function Reference

Architecture documentation for the onHttp2FrameStreamException() function in Http2MultiplexCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e5d576e9_696e_d77d_46ca_3e748084d1e4["onHttp2FrameStreamException()"]
  a7ac469b_ce05_746a_3b73_34450541872b["Http2MultiplexCodec"]
  e5d576e9_696e_d77d_46ca_3e748084d1e4 -->|defined in| a7ac469b_ce05_746a_3b73_34450541872b
  style e5d576e9_696e_d77d_46ca_3e748084d1e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java lines 206–218

    @Override
    final void onHttp2FrameStreamException(ChannelHandlerContext ctx, Http2FrameStreamException cause) {
        Http2FrameStream stream = cause.stream();
        AbstractHttp2StreamChannel channel = (AbstractHttp2StreamChannel) ((DefaultHttp2FrameStream) stream).attachment;

        try {
            channel.pipeline().fireExceptionCaught(cause.getCause());
        } finally {
            // Close with the correct error that causes this stream exception.
            // See https://github.com/netty/netty/issues/13235#issuecomment-1441994672
            channel.closeWithError(cause.error());
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does onHttp2FrameStreamException() do?
onHttp2FrameStreamException() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java.
Where is onHttp2FrameStreamException() defined?
onHttp2FrameStreamException() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java at line 206.

Analyze Your Own Codebase

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

Try Supermodel Free