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
-
-
Field Summary
Fields Modifier and Type Field Description private DnsQuestionquestionprivate java.net.InetSocketAddressremoteAddressprivate static longserialVersionUID
-
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 Static 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.private static DnsQuestionvalidateQuestion(DnsQuestion question)private static java.net.InetSocketAddressvalidateRemoteAddress(java.net.InetSocketAddress remoteAddress)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
remoteAddress
private final java.net.InetSocketAddress remoteAddress
-
question
private final DnsQuestion question
-
-
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
-
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 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
-
-