Top Description Fields Constructors Methods
io.netty.resolver.dns

public Class DnsNameResolverException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
io.netty.resolver.dns.DnsNameResolverTimeoutException
Imports
io.netty.handler.codec.dns.DnsQuestion, io.netty.util.internal.EmptyArrays, .ObjectUtil, java.net.InetSocketAddress

A RuntimeException raised when DnsNameResolver failed to perform a successful query.

Field Summary

Modifier and TypeField and Description
private final DnsQuestion
private final InetSocketAddress
private static final long

Constructor Summary

AccessConstructor and Description
public
public
DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public Throwable
fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace.
public DnsQuestion
question()

Returns the DnsQuestion of the DNS query that has failed.

public InetSocketAddress
remoteAddress()

Returns the InetSocketAddress of the DNS query that has failed.

private static DnsQuestion
private static InetSocketAddress

Field Detail

questionback to summary
private final DnsQuestion question
remoteAddressback to summary
private final InetSocketAddress remoteAddress
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

DnsNameResolverExceptionback to summary
public DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message)
DnsNameResolverExceptionback to summary
public DnsNameResolverException(InetSocketAddress remoteAddress, DnsQuestion question, String message, Throwable cause)

Method Detail

fillInStackTraceback to summary
public Throwable fillInStackTrace()

Overrides java.lang.Throwable.fillInStackTrace.

Doc from java.lang.Throwable.fillInStackTrace.

Fills in the execution stack trace. This method records within this Throwable object information about the current state of the stack frames for the current thread.

If the stack trace of this Throwable is not writable, calling this method has no effect.

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override
questionback to summary
public DnsQuestion question()

Returns the DnsQuestion of the DNS query that has failed.

remoteAddressback to summary
public InetSocketAddress remoteAddress()

Returns the InetSocketAddress of the DNS query that has failed.

validateQuestionback to summary
private static DnsQuestion validateQuestion(DnsQuestion question)
validateRemoteAddressback to summary
private static InetSocketAddress validateRemoteAddress(InetSocketAddress remoteAddress)