fail() — netty Function Reference
Architecture documentation for the fail() function in HAProxyMessageDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4bcf7a2e_b41c_ffbf_c326_61a787af2c17["fail()"] 779adff2_46a7_a104_ccd9_84680387d552["HAProxyMessageDecoder"] 4bcf7a2e_b41c_ffbf_c326_61a787af2c17 -->|defined in| 779adff2_46a7_a104_ccd9_84680387d552 5c5e7bc9_025c_6ef6_d933_6646e8180072["decode()"] 5c5e7bc9_025c_6ef6_d933_6646e8180072 -->|calls| 4bcf7a2e_b41c_ffbf_c326_61a787af2c17 23921ca9_0bcc_4691_cc52_b64c6b92259c["failOverLimit()"] 23921ca9_0bcc_4691_cc52_b64c6b92259c -->|calls| 4bcf7a2e_b41c_ffbf_c326_61a787af2c17 style 4bcf7a2e_b41c_ffbf_c326_61a787af2c17 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageDecoder.java lines 304–318
private void fail(final ChannelHandlerContext ctx, String errMsg, Exception e) {
finished = true;
ctx.close(); // drop connection immediately per spec
HAProxyProtocolException ppex;
if (errMsg != null && e != null) {
ppex = new HAProxyProtocolException(errMsg, e);
} else if (errMsg != null) {
ppex = new HAProxyProtocolException(errMsg);
} else if (e != null) {
ppex = new HAProxyProtocolException(e);
} else {
ppex = new HAProxyProtocolException();
}
throw ppex;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does fail() do?
fail() is a function in the netty codebase, defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageDecoder.java.
Where is fail() defined?
fail() is defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessageDecoder.java at line 304.
What calls fail()?
fail() is called by 2 function(s): decode, failOverLimit.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free