vertx / io.vertx.core.dns / DnsResponseCode

DnsResponseCode

class DnsResponseCode

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

Enum Values

NOERROR

FORMERROR

SERVFAIL

NXDOMAIN

NOTIMPL

REFUSED

YXDOMAIN

YXRRSET

NXRRSET

NOTAUTH

NOTZONE

BADVERS

BADSIG

BADKEY

BADTIME

Functions

code

fun code(): Int

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

toString

fun toString(): String

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

valueOf

static fun valueOf(responseCode: Int): DnsResponseCode

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