- 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
ARuntimeException
raised whenDnsNameResolver
failed 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 DnsQuestion
question()
Returns theDnsQuestion
of the DNS query that has failed.InetSocketAddress
remoteAddress()
Returns theInetSocketAddress
of 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 theInetSocketAddress
of the DNS query that has failed.
-
question
public DnsQuestion question()
Returns theDnsQuestion
of the DNS query that has failed.
-
-