public class DnsNameResolverException
extends java.lang.RuntimeException
RuntimeException
raised when DnsNameResolver
failed to perform a successful query.构造器和说明 |
---|
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) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Throwable |
fillInStackTrace() |
DnsQuestion |
question()
Returns the
DnsQuestion of the DNS query that has failed. |
java.net.InetSocketAddress |
remoteAddress()
Returns the
InetSocketAddress of the DNS query that has failed. |
public DnsNameResolverException(java.net.InetSocketAddress remoteAddress, DnsQuestion question, java.lang.String message)
public DnsNameResolverException(java.net.InetSocketAddress remoteAddress, DnsQuestion question, java.lang.String message, java.lang.Throwable cause)
public java.net.InetSocketAddress remoteAddress()
InetSocketAddress
of the DNS query that has failed.public DnsQuestion question()
DnsQuestion
of the DNS query that has failed.public java.lang.Throwable fillInStackTrace()
fillInStackTrace
在类中 java.lang.Throwable