Home / Function/ fail() — netty Function Reference

fail() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7a7f9937_ea59_fccf_5203_1c354e63f498["fail()"]
  b53af1b4_09b5_0fac_55e3_d5fcdb0017dd["Socks5CommandResponseDecoder"]
  7a7f9937_ea59_fccf_5203_1c354e63f498 -->|defined in| b53af1b4_09b5_0fac_55e3_d5fcdb0017dd
  a718f076_b7bf_6fc3_a00d_26dbaf880859["decode()"]
  a718f076_b7bf_6fc3_a00d_26dbaf880859 -->|calls| 7a7f9937_ea59_fccf_5203_1c354e63f498
  style 7a7f9937_ea59_fccf_5203_1c354e63f498 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder.java lines 94–105

    private void fail(List<Object> out, Exception cause) {
        if (!(cause instanceof DecoderException)) {
            cause = new DecoderException(cause);
        }

        checkpoint(State.FAILURE);

        Socks5Message m = new DefaultSocks5CommandResponse(
                Socks5CommandStatus.FAILURE, Socks5AddressType.IPv4, null, 0);
        m.setDecoderResult(DecoderResult.failure(cause));
        out.add(m);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does fail() do?
fail() is a function in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder.java.
Where is fail() defined?
fail() is defined in codec-socks/src/main/java/io/netty/handler/codec/socksx/v5/Socks5CommandResponseDecoder.java at line 94.
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