Class DnsErrorCauseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.netty.resolver.dns.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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final DnsResponseCode
     
    private static final long
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    DnsErrorCauseException(java.lang.String message, DnsResponseCode code, boolean shared)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.Throwable
     
    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
  • Field Details

  • Constructor Details

    • DnsErrorCauseException

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

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

      static DnsErrorCauseException newStatic(java.lang.String message, DnsResponseCode code, java.lang.Class<?> clazz, java.lang.String method)