Variant
error-code
Lookup error codes.
variant error-code {
access-denied,
invalid-argument,
name-unresolvable,
temporary-resolver-failure,
permanent-resolver-failure,
other(option<string>),
}Cases
| Case | Payload | Description |
|---|---|---|
| access-denied | — | Access denied. |
| invalid-argument | — | name is a syntactically invalid domain name or IP address. |
| name-unresolvable | — | Name does not exist or has no suitable associated IP addresses. |
| temporary-resolver-failure | — | A temporary failure in name resolution occurred. |
| permanent-resolver-failure | — | A permanent failure in name resolution occurred. |
| other | option<string> | A catch-all for errors not captured by the existing variants. Implementations can use this to extend the error type without breaking existing code. |