Package io.netty.resolver.dns
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.RuntimeExceptionARuntimeExceptionraised whenDnsNameResolverfailed to perform a successful query.- See Also:
- Serialized Form
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablefillInStackTrace()DnsQuestionquestion()Returns theDnsQuestionof the DNS query that has failed.java.net.InetSocketAddressremoteAddress()Returns theInetSocketAddressof the DNS query that has failed.
-
-
-
Constructor Detail
-
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 Detail
-
remoteAddress
public java.net.InetSocketAddress remoteAddress()
Returns theInetSocketAddressof the DNS query that has failed.
-
question
public DnsQuestion question()
Returns theDnsQuestionof the DNS query that has failed.
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classjava.lang.Throwable
-
-