Top Description Fields Constructors Methods
io.vertx.core.dns

public final Enum DnsResponseCode

extends Enum<DnsResponseCode>
Class Inheritance
Annotations
@VertxGen
Imports
io.vertx.codegen.annotations.VertxGen

Represents the possible response codes a server may send after receiving a query. A response code of 0 indicates no error.

Field Summary

Modifier and TypeField and Description
public static final DnsResponseCode
BADKEY

ID 13, bad key

public static final DnsResponseCode
BADSIG

ID 12, bad signature

public static final DnsResponseCode
BADTIME

ID 14, bad timestamp

public static final DnsResponseCode
BADVERS

ID 11, bad extension mechanism for version

private final int
public static final DnsResponseCode
FORMERROR

ID 1, format error

private final String
public static final DnsResponseCode
NOERROR

ID 0, no error

public static final DnsResponseCode
NOTAUTH

ID 9, not authoritative for zone

public static final DnsResponseCode
NOTIMPL

ID 4, not implemented

public static final DnsResponseCode
NOTZONE

ID 10, name not in zone

public static final DnsResponseCode
NXDOMAIN

ID 3, name error

public static final DnsResponseCode
NXRRSET

ID 8, rrset does not exist

public static final DnsResponseCode
REFUSED

ID 5, operation refused

public static final DnsResponseCode
SERVFAIL

ID 2, server failure

public static final DnsResponseCode
YXDOMAIN

ID 6, domain name should not exist

public static final DnsResponseCode
YXRRSET

ID 7, resource record set should not exist

Constructor Summary

AccessConstructor and Description
private
DnsResponseCode(int errorCode, String message)

Method Summary

Modifier and TypeMethod and Description
public int
code()

Returns the error code for this io.vertx.core.dns.DnsResponseCode.

public String
toString()

Overrides java.lang.Enum.toString.

Returns a formatted error message for this io.vertx.core.dns.DnsResponseCode.

public static DnsResponseCode
public static DnsResponseCode

Returns:

corresponding io.vertx.core.dns.DnsResponseCode
valueOf
(int
the error code's id
responseCode
)

Returns the io.vertx.core.dns.DnsResponseCode that corresponds with the given responseCode.

public static DnsResponseCode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

BADKEYback to summary
public static final DnsResponseCode BADKEY

ID 13, bad key

BADSIGback to summary
public static final DnsResponseCode BADSIG

ID 12, bad signature

BADTIMEback to summary
public static final DnsResponseCode BADTIME

ID 14, bad timestamp

BADVERSback to summary
public static final DnsResponseCode BADVERS

ID 11, bad extension mechanism for version

errorCodeback to summary
private final int errorCode
FORMERRORback to summary
public static final DnsResponseCode FORMERROR

ID 1, format error

messageback to summary
private final String message
NOERRORback to summary
public static final DnsResponseCode NOERROR

ID 0, no error

NOTAUTHback to summary
public static final DnsResponseCode NOTAUTH

ID 9, not authoritative for zone

NOTIMPLback to summary
public static final DnsResponseCode NOTIMPL

ID 4, not implemented

NOTZONEback to summary
public static final DnsResponseCode NOTZONE

ID 10, name not in zone

NXDOMAINback to summary
public static final DnsResponseCode NXDOMAIN

ID 3, name error

NXRRSETback to summary
public static final DnsResponseCode NXRRSET

ID 8, rrset does not exist

REFUSEDback to summary
public static final DnsResponseCode REFUSED

ID 5, operation refused

SERVFAILback to summary
public static final DnsResponseCode SERVFAIL

ID 2, server failure

YXDOMAINback to summary
public static final DnsResponseCode YXDOMAIN

ID 6, domain name should not exist

YXRRSETback to summary
public static final DnsResponseCode YXRRSET

ID 7, resource record set should not exist

Constructor Detail

DnsResponseCodeback to summary
private DnsResponseCode(int errorCode, String message)

Method Detail

codeback to summary
public int code()

Returns the error code for this io.vertx.core.dns.DnsResponseCode.

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Returns a formatted error message for this io.vertx.core.dns.DnsResponseCode.

Returns:String

Doc from java.lang.Enum.toString.

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static DnsResponseCode valueOf(String name)
valueOfback to summary
public static DnsResponseCode valueOf(int responseCode)

Returns the io.vertx.core.dns.DnsResponseCode that corresponds with the given responseCode.

Parameters
responseCode:int

the error code's id

Returns:DnsResponseCode

corresponding io.vertx.core.dns.DnsResponseCode

valuesback to summary
public static DnsResponseCode[] values()