Class DnsErrorCauseException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DnsErrorCauseException
    extends java.lang.RuntimeException
    A metadata carrier exception, to propagate DnsResponseCode information as an enrichment within the UnknownHostException cause.
    See Also:
    Serialized Form
    • Constructor Detail

      • DnsErrorCauseException

        private DnsErrorCauseException​(java.lang.String message,
                                       DnsResponseCode code)
      • DnsErrorCauseException

        private DnsErrorCauseException​(java.lang.String message,
                                       DnsResponseCode code,
                                       boolean shared)
    • Method Detail

      • fillInStackTrace

        public java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable
      • getCode

        public DnsResponseCode getCode()
        Returns the DNS error-code that caused the UnknownHostException.
        Returns:
        the DNS error-code that caused the UnknownHostException.