Class DnsNameResolverException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.netty.resolver.dns.DnsNameResolverException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DnsNameResolverTimeoutException

public class DnsNameResolverException extends java.lang.RuntimeException
A RuntimeException raised when DnsNameResolver failed to perform a successful query.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final DnsQuestion
     
    private final java.net.InetSocketAddress
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DnsNameResolverException(java.net.InetSocketAddress remoteAddress, DnsQuestion question, java.lang.String message)
     
    DnsNameResolverException(java.net.InetSocketAddress remoteAddress, DnsQuestion question, java.lang.String message, java.lang.Throwable cause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.Throwable
     
    Returns the DnsQuestion of the DNS query that has failed.
    java.net.InetSocketAddress
    Returns the InetSocketAddress of the DNS query that has failed.
    private static DnsQuestion
     
    private static java.net.InetSocketAddress
    validateRemoteAddress(java.net.InetSocketAddress remoteAddress)
     

    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

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • remoteAddress

      private final java.net.InetSocketAddress remoteAddress
    • question

      private final DnsQuestion question
  • Constructor Details

    • DnsNameResolverException

      public DnsNameResolverException(java.net.InetSocketAddress remoteAddress, DnsQuestion question, java.lang.String message)
    • DnsNameResolverException

      public DnsNameResolverException(java.net.InetSocketAddress remoteAddress, DnsQuestion question, java.lang.String message, java.lang.Throwable cause)
  • Method Details

    • validateRemoteAddress

      private static java.net.InetSocketAddress validateRemoteAddress(java.net.InetSocketAddress remoteAddress)
    • validateQuestion

      private static DnsQuestion validateQuestion(DnsQuestion question)
    • remoteAddress

      public java.net.InetSocketAddress remoteAddress()
      Returns the InetSocketAddress of the DNS query that has failed.
    • question

      public DnsQuestion question()
      Returns the DnsQuestion of the DNS query that has failed.
    • fillInStackTrace

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