public enum DnsResponseCode extends Enum<DnsResponseCode>
Enum Constant and Description |
---|
BADKEY
ID 13, bad key
|
BADSIG
ID 12, bad signature
|
BADTIME
ID 14, bad timestamp
|
BADVERS
ID 11, bad extension mechanism for version
|
FORMERROR
ID 1, format error
|
NOERROR
ID 0, no error
|
NOTAUTH
ID 9, not authoritative for zone
|
NOTIMPL
ID 4, not implemented
|
NOTZONE
ID 10, name not in zone
|
NXDOMAIN
ID 3, name error
|
NXRRSET
ID 8, rrset does not exist
|
REFUSED
ID 5, operation refused
|
SERVFAIL
ID 2, server failure
|
YXDOMAIN
ID 6, domain name should not exist
|
YXRRSET
ID 7, resource record set should not exist
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the error code for this
DnsResponseCode . |
String |
toString()
Returns a formatted error message for this
DnsResponseCode . |
static DnsResponseCode |
valueOf(int responseCode)
Returns the
DnsResponseCode that corresponds with the given
responseCode . |
static DnsResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DnsResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 static DnsResponseCode[] values()
for (DnsResponseCode c : DnsResponseCode.values()) System.out.println(c);
public static DnsResponseCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DnsResponseCode valueOf(int responseCode)
DnsResponseCode
that corresponds with the given
responseCode
.responseCode
- the error code's idDnsResponseCode
public int code()
DnsResponseCode
.public String toString()
DnsResponseCode
.toString
in class Enum<DnsResponseCode>
Copyright © 2021 Eclipse. All rights reserved.