public final class DnsResponseCode extends Object implements Comparable<DnsResponseCode>
Modifier and Type | Field and Description |
---|---|
static DnsResponseCode |
BADKEY
ID 13, bad key
|
static DnsResponseCode |
BADSIG
ID 12, bad signature
|
static DnsResponseCode |
BADTIME
ID 14, bad timestamp
|
static DnsResponseCode |
BADVERS
ID 11, bad extension mechanism for version
|
static DnsResponseCode |
FORMERROR
ID 1, format error
|
static DnsResponseCode |
NOERROR
ID 0, no error
|
static DnsResponseCode |
NOTAUTH
ID 9, not authoritative for zone
|
static DnsResponseCode |
NOTIMPL
ID 4, not implemented
|
static DnsResponseCode |
NOTZONE
ID 10, name not in zone
|
static DnsResponseCode |
NXDOMAIN
ID 3, name error
|
static DnsResponseCode |
NXRRSET
ID 8, rrset does not exist
|
static DnsResponseCode |
REFUSED
ID 5, operation refused
|
static DnsResponseCode |
SERVFAIL
ID 2, server failure
|
static DnsResponseCode |
YXDOMAIN
ID 6, domain name should not exist
|
static DnsResponseCode |
YXRRSET
ID 7, resource record set should not exist
|
Constructor and Description |
---|
DnsResponseCode(int errorCode,
String message) |
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the error code for this
DnsResponseCode . |
int |
compareTo(DnsResponseCode o) |
boolean |
equals(Object o)
Equality of
DnsResponseCode only depends on code() . |
int |
hashCode() |
String |
toString()
Returns a formatted error message for this
DnsResponseCode . |
static DnsResponseCode |
valueOf(int responseCode)
Returns the
DnsResponseCode that corresponds with the given
responseCode . |
public static final DnsResponseCode NOERROR
public static final DnsResponseCode FORMERROR
public static final DnsResponseCode SERVFAIL
public static final DnsResponseCode NXDOMAIN
public static final DnsResponseCode NOTIMPL
public static final DnsResponseCode REFUSED
public static final DnsResponseCode YXDOMAIN
public static final DnsResponseCode YXRRSET
public static final DnsResponseCode NXRRSET
public static final DnsResponseCode NOTAUTH
public static final DnsResponseCode NOTZONE
public static final DnsResponseCode BADVERS
public static final DnsResponseCode BADSIG
public static final DnsResponseCode BADKEY
public static final DnsResponseCode BADTIME
public DnsResponseCode(int errorCode, String message)
public static DnsResponseCode valueOf(int responseCode)
DnsResponseCode
that corresponds with the given
responseCode
.responseCode
- the error code's idDnsResponseCode
or null
if none can be found.public int code()
DnsResponseCode
.public int compareTo(DnsResponseCode o)
compareTo
in interface Comparable<DnsResponseCode>
public boolean equals(Object o)
DnsResponseCode
only depends on code()
.public String toString()
DnsResponseCode
.Copyright © 2008–2015 The Netty Project. All rights reserved.