DnsResponseCode enum
DNS response code enumeration
Corresponds to RCODE values in DNS protocol
Values
- noError → const DnsResponseCode
-
No error
const DnsResponseCode(0, 'No error') - formatError → const DnsResponseCode
-
Format error
const DnsResponseCode(1, 'Format error') - serverFailure → const DnsResponseCode
-
Server failure
const DnsResponseCode(2, 'Server failure') - nameError → const DnsResponseCode
-
Name error (domain does not exist)
const DnsResponseCode(3, 'Name error (NXDOMAIN)') - notImplemented → const DnsResponseCode
-
Not implemented
const DnsResponseCode(4, 'Not implemented') - refused → const DnsResponseCode
-
Refused
const DnsResponseCode(5, 'Refused')
Properties
- description → String
-
Response code description
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Response code value
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → DnsResponseCode? - Find response code by value
Constants
-
values
→ const List<
DnsResponseCode> - A constant List of the values in this enum, in order of their declaration.