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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable fillInStackTrace()  
      DnsResponseCode getCode()
      Returns the DNS error-code that caused the UnknownHostException.
      (package private) static DnsErrorCauseException newStatic​(java.lang.String message, DnsResponseCode code, java.lang.Class<?> clazz, java.lang.String method)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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.