Home / Class/ DnsErrorCauseException Class — netty Architecture

DnsErrorCauseException Class — netty Architecture

Architecture documentation for the DnsErrorCauseException class in DnsErrorCauseException.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c2bdd363_0b3f_031e_d55d_daed7379409a["DnsErrorCauseException"]
  cd262640_cd6b_3b14_0bdf_a81e9de1959d["DnsErrorCauseException.java"]
  c2bdd363_0b3f_031e_d55d_daed7379409a -->|defined in| cd262640_cd6b_3b14_0bdf_a81e9de1959d
  9f3978de_7611_93e6_26f4_fbd6562bd0da["DnsErrorCauseException()"]
  c2bdd363_0b3f_031e_d55d_daed7379409a -->|method| 9f3978de_7611_93e6_26f4_fbd6562bd0da
  749887b1_e950_0b6b_de05_ca2a6f715a09["Throwable()"]
  c2bdd363_0b3f_031e_d55d_daed7379409a -->|method| 749887b1_e950_0b6b_de05_ca2a6f715a09
  ba01cdf6_ba3b_4e87_2185_01e1a1c3c2a6["DnsResponseCode()"]
  c2bdd363_0b3f_031e_d55d_daed7379409a -->|method| ba01cdf6_ba3b_4e87_2185_01e1a1c3c2a6

Relationship Graph

Source Code

resolver-dns/src/main/java/io/netty/resolver/dns/DnsErrorCauseException.java lines 28–60

public final class DnsErrorCauseException extends RuntimeException {

    private static final long serialVersionUID = 7485145036717494533L;

    private final DnsResponseCode code;

    private DnsErrorCauseException(String message, DnsResponseCode code, boolean shared) {
        super(message, null, false, true);
        this.code = code;
        assert shared;
    }

    // Override fillInStackTrace() so we not populate the backtrace via a native call and so leak the
    // Classloader.
    @Override
    public Throwable fillInStackTrace() {
        return this;
    }

    /**
     * Returns the DNS error-code that caused the {@link UnknownHostException}.
     *
     * @return the DNS error-code that caused the {@link UnknownHostException}.
     */
    public DnsResponseCode getCode() {
        return code;
    }

    static DnsErrorCauseException newStatic(String message, DnsResponseCode code, Class<?> clazz, String method) {
        final DnsErrorCauseException exception = new DnsErrorCauseException(message, code, true);
        return ThrowableUtil.unknownStackTrace(exception, clazz, method);
    }
}

Frequently Asked Questions

What is the DnsErrorCauseException class?
DnsErrorCauseException is a class in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsErrorCauseException.java.
Where is DnsErrorCauseException defined?
DnsErrorCauseException is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsErrorCauseException.java at line 28.

Analyze Your Own Codebase

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

Try Supermodel Free