public final class DnsException
extends java.lang.Exception
AsyncResult
if the DNS query returns a DnsResponseCode
which indicates and error.Constructor and Description |
---|
DnsException(DnsResponseCode code) |
Modifier and Type | Method and Description |
---|---|
DnsResponseCode |
code()
The
DnsResponseCode which caused this DnsException to be created. |
public DnsException(DnsResponseCode code)
public DnsResponseCode code()
DnsResponseCode
which caused this DnsException
to be created.