Home / Class/ ListenerExceptionThrower Class — netty Architecture

ListenerExceptionThrower Class — netty Architecture

Architecture documentation for the ListenerExceptionThrower class in DefaultHttp2ConnectionTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9ad1998e_d616_b1b8_18fd_3e209afe1fa0["ListenerExceptionThrower"]
  352a23e0_6abd_a697_4929_e2deba8ac19b["DefaultHttp2ConnectionTest.java"]
  9ad1998e_d616_b1b8_18fd_3e209afe1fa0 -->|defined in| 352a23e0_6abd_a697_4929_e2deba8ac19b
  c8fe9127_3402_9c69_bc0b_c0c961c0aabb["ListenerExceptionThrower()"]
  9ad1998e_d616_b1b8_18fd_3e209afe1fa0 -->|method| c8fe9127_3402_9c69_bc0b_c0c961c0aabb
  1fe53f0c_32ec_ec6f_ad86_cf0db5caedd8["Void()"]
  9ad1998e_d616_b1b8_18fd_3e209afe1fa0 -->|method| 1fe53f0c_32ec_ec6f_ad86_cf0db5caedd8

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionTest.java lines 711–726

    private static final class ListenerExceptionThrower implements Answer<Void> {
        private static final RuntimeException FAKE_EXCEPTION = new RuntimeException("Fake Exception");
        private final boolean[] array;
        private final int index;

        ListenerExceptionThrower(boolean[] array, int index) {
            this.array = array;
            this.index = index;
        }

        @Override
        public Void answer(InvocationOnMock invocation) throws Throwable {
            array[index] = true;
            throw FAKE_EXCEPTION;
        }
    }

Frequently Asked Questions

What is the ListenerExceptionThrower class?
ListenerExceptionThrower is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionTest.java.
Where is ListenerExceptionThrower defined?
ListenerExceptionThrower is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionTest.java at line 711.

Analyze Your Own Codebase

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

Try Supermodel Free