public final class DnsException extends Exception
Exception which is used to notify the 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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DnsException(DnsResponseCode code)
public DnsResponseCode code()
The DnsResponseCode
which caused this DnsException
to be created.
Copyright © 2014. All Rights Reserved.