fail() — netty Function Reference
Architecture documentation for the fail() function in LengthFieldBasedFrameDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 377d60e8_ded7_845a_5e05_1f5044b18794["fail()"] 687df7d8_4057_fca4_6694_3143553abf69["LengthFieldBasedFrameDecoder"] 377d60e8_ded7_845a_5e05_1f5044b18794 -->|defined in| 687df7d8_4057_fca4_6694_3143553abf69 85c6af4f_525c_0286_9d46_f6cb70186ae3["failIfNecessary()"] 85c6af4f_525c_0286_9d46_f6cb70186ae3 -->|calls| 377d60e8_ded7_845a_5e05_1f5044b18794 style 377d60e8_ded7_845a_5e05_1f5044b18794 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java lines 505–515
private void fail(long frameLength) {
if (frameLength > 0) {
throw new TooLongFrameException(
"Adjusted frame length exceeds " + maxFrameLength +
": " + frameLength + " - discarded");
} else {
throw new TooLongFrameException(
"Adjusted frame length exceeds " + maxFrameLength +
" - discarding");
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does fail() do?
fail() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java.
Where is fail() defined?
fail() is defined in codec-base/src/main/java/io/netty/handler/codec/LengthFieldBasedFrameDecoder.java at line 505.
What calls fail()?
fail() is called by 1 function(s): failIfNecessary.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free