Home / Function/ appendError() — netty Function Reference

appendError() — netty Function Reference

Architecture documentation for the appendError() function in ParameterizedSslHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f60ede47_5a49_014d_9440_53ed2959c4d1["appendError()"]
  fbe5a904_e2f4_3f60_ff77_a8aa6a453d31["ReentryWriteSslHandshakeHandler"]
  f60ede47_5a49_014d_9440_53ed2959c4d1 -->|defined in| fbe5a904_e2f4_3f60_ff77_a8aa6a453d31
  34385cfd_5b94_5f19_20c9_139fe1185827["userEventTriggered()"]
  34385cfd_5b94_5f19_20c9_139fe1185827 -->|calls| f60ede47_5a49_014d_9440_53ed2959c4d1
  8012c2ef_ec06_9bdf_064e_3c1e7ba7f4b8["exceptionCaught()"]
  8012c2ef_ec06_9bdf_064e_3c1e7ba7f4b8 -->|calls| f60ede47_5a49_014d_9440_53ed2959c4d1
  style f60ede47_5a49_014d_9440_53ed2959c4d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/ParameterizedSslHandlerTest.java lines 676–690

        private void appendError(Throwable cause) {
            LOGGER.error(new Exception("Caught possible write failure in ParameterizedSslHandlerTest.", cause));
            readQueue.append("failed to write '").append(toWrite).append("': ");

            ByteArrayOutputStream out = new ByteArrayOutputStream();
            try {
                cause.printStackTrace(new PrintStream(out));
                readQueue.append(out.toString(CharsetUtil.US_ASCII.name()));
            } catch (UnsupportedEncodingException ignore) {
                // Let's just fallback to using toString().
                readQueue.append(cause);
            } finally {
                doneLatch.countDown();
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does appendError() do?
appendError() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/ParameterizedSslHandlerTest.java.
Where is appendError() defined?
appendError() is defined in handler/src/test/java/io/netty/handler/ssl/ParameterizedSslHandlerTest.java at line 676.
What calls appendError()?
appendError() is called by 2 function(s): exceptionCaught, userEventTriggered.

Analyze Your Own Codebase

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

Try Supermodel Free