Home / Function/ Throwable() — netty Function Reference

Throwable() — netty Function Reference

Architecture documentation for the Throwable() function in AbstractHttp2StreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2d7de27b_700c_f7a8_9784_4ee453ccc004["Throwable()"]
  2656dcfe_5cdb_7c7d_bc25_312393fe2e05["Http2ChannelUnsafe"]
  2d7de27b_700c_f7a8_9784_4ee453ccc004 -->|defined in| 2656dcfe_5cdb_7c7d_bc25_312393fe2e05
  style 2d7de27b_700c_f7a8_9784_4ee453ccc004 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 1146–1153

        private Throwable wrapStreamClosedError(Throwable cause) {
            // If the error was caused by STREAM_CLOSED we should use a ClosedChannelException to better
            // mimic other transports and make it easier to reason about what exceptions to expect.
            if (cause instanceof Http2Exception && ((Http2Exception) cause).error() == Http2Error.STREAM_CLOSED) {
                return new ClosedChannelException().initCause(cause);
            }
            return cause;
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free