- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.netty5.resolver.dns.DnsNameResolverException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DnsNameResolverTimeoutException
public class DnsNameResolverException extends RuntimeException
ARuntimeExceptionraised whenDnsNameResolverfailed to perform a successful query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message)DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsQuestionquestion()Returns theDnsQuestionof the DNS query that has failed.InetSocketAddressremoteAddress()Returns theInetSocketAddressof the DNS query that has failed.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DnsNameResolverException
public DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message)
-
DnsNameResolverException
public DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message, Throwable cause)
-
-
Method Detail
-
remoteAddress
public InetSocketAddress remoteAddress()
Returns theInetSocketAddressof the DNS query that has failed.
-
question
public DnsQuestion question()
Returns theDnsQuestionof the DNS query that has failed.
-
-