Package io.activej.dns.protocol
Enum DnsProtocol.ResponseErrorCode
- All Implemented Interfaces:
Serializable,Comparable<DnsProtocol.ResponseErrorCode>,java.lang.constant.Constable
- Enclosing class:
- DnsProtocol
public static enum DnsProtocol.ResponseErrorCode extends Enum<DnsProtocol.ResponseErrorCode>
Handled error codes:
| RCODE: | NAME: | Description: | Reference: |
|---|---|---|---|
| 0 | NoError | No Error | RFC1035 |
| 1 | FormErr | Format Error | RFC1035 |
| 2 | ServFail | Server Failure | RFC1035 |
| 3 | NXDomain | Non-Existent Domain | RFC1035 |
| 4 | NotImp | Not Implemented | RFC1035 |
| 5 | Refused | Query Refused | RFC1035 |
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description FORMAT_ERRORNAME_ERRORNO_DATANO_ERRORNOT_IMPLEMENTEDREFUSEDSERVER_FAILURETIMED_OUTUNKNOWN -
Method Summary
Modifier and Type Method Description static DnsProtocol.ResponseErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static DnsProtocol.ResponseErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-