connectionErrorForWriterException() — netty Function Reference
Architecture documentation for the connectionErrorForWriterException() function in WeightedFairQueueByteDistributorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b66c2bd8_676d_86a4_cc77_2d4d4d56c82b["connectionErrorForWriterException()"] 67b7550d_3bc6_4a2b_6b2f_618af35d6df8["WeightedFairQueueByteDistributorTest"] b66c2bd8_676d_86a4_cc77_2d4d4d56c82b -->|defined in| 67b7550d_3bc6_4a2b_6b2f_618af35d6df8 11b51d3d_8188_9502_be8f_cc1ca56136d9["write()"] b66c2bd8_676d_86a4_cc77_2d4d4d56c82b -->|calls| 11b51d3d_8188_9502_be8f_cc1ca56136d9 7bda6a25_cd2a_2145_1a6b_a3c3169cec22["verifyWrite()"] b66c2bd8_676d_86a4_cc77_2d4d4d56c82b -->|calls| 7bda6a25_cd2a_2145_1a6b_a3c3169cec22 style b66c2bd8_676d_86a4_cc77_2d4d4d56c82b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java lines 146–177
@Test
public void connectionErrorForWriterException() throws Http2Exception {
initState(STREAM_A, 1, true);
initState(STREAM_B, 2, true);
initState(STREAM_C, 3, true);
initState(STREAM_D, 4, true);
Exception fakeException = new RuntimeException("Fake exception");
doThrow(fakeException).when(writer).write(same(stream(STREAM_C)), eq(3));
Http2Exception e = assertThrows(Http2Exception.class, new Executable() {
@Override
public void execute() throws Throwable {
write(10);
}
});
assertFalse(Http2Exception.isStreamError(e));
assertEquals(Http2Error.INTERNAL_ERROR, e.error());
assertSame(fakeException, e.getCause());
verifyWrite(atMost(1), STREAM_A, 1);
verifyWrite(atMost(1), STREAM_B, 2);
verifyWrite(STREAM_C, 3);
verifyWrite(atMost(1), STREAM_D, 4);
doAnswer(writeAnswer(false)).when(writer).write(same(stream(STREAM_C)), eq(3));
assertFalse(write(10));
verifyWrite(STREAM_A, 1);
verifyWrite(STREAM_B, 2);
verifyWrite(times(2), STREAM_C, 3);
verifyWrite(STREAM_D, 4);
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does connectionErrorForWriterException() do?
connectionErrorForWriterException() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java.
Where is connectionErrorForWriterException() defined?
connectionErrorForWriterException() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorTest.java at line 146.
What does connectionErrorForWriterException() call?
connectionErrorForWriterException() calls 2 function(s): verifyWrite, write.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free