Home / Function/ fail() — netty Function Reference

fail() — netty Function Reference

Architecture documentation for the fail() function in XmlFrameDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  23b37d5f_23cf_0f21_3b33_fd790dcc0476["fail()"]
  7d6b87e5_eb7b_72e0_1afd_174c09a039b0["XmlFrameDecoder"]
  23b37d5f_23cf_0f21_3b33_fd790dcc0476 -->|defined in| 7d6b87e5_eb7b_72e0_1afd_174c09a039b0
  16b71bcb_9bc6_dcdf_9d02_291227b77db6["decode()"]
  16b71bcb_9bc6_dcdf_9d02_291227b77db6 -->|calls| 23b37d5f_23cf_0f21_3b33_fd790dcc0476
  style 23b37d5f_23cf_0f21_3b33_fd790dcc0476 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-xml/src/main/java/io/netty/handler/codec/xml/XmlFrameDecoder.java lines 195–203

    private void fail(long frameLength) {
        if (frameLength > 0) {
            throw new TooLongFrameException(
                            "frame length exceeds " + maxFrameLength + ": " + frameLength + " - discarded");
        } else {
            throw new TooLongFrameException(
                            "frame length exceeds " + maxFrameLength + " - discarding");
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does fail() do?
fail() is a function in the netty codebase, defined in codec-xml/src/main/java/io/netty/handler/codec/xml/XmlFrameDecoder.java.
Where is fail() defined?
fail() is defined in codec-xml/src/main/java/io/netty/handler/codec/xml/XmlFrameDecoder.java at line 195.
What calls fail()?
fail() is called by 1 function(s): decode.

Analyze Your Own Codebase

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

Try Supermodel Free