mirror of
https://github.com/google/nomulus
synced 2026-07-19 22:42:23 +00:00
Implement retry for transient errors in WHOIS server
We now attempt to retry Whois queries in the event of a short-lived error. Currently, we consider 'DatastoreTimeoutException' and 'DatastoreFailureException' as transient. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152044934
This commit is contained in:
@@ -68,4 +68,11 @@ public final class WhoisException extends Exception implements WhoisResponse {
|
||||
.toString();
|
||||
return WhoisResponseResults.create(plaintext, 0);
|
||||
}
|
||||
|
||||
/** Exception that wraps WhoisExceptions returned from Retrier. */
|
||||
public static final class UncheckedWhoisException extends RuntimeException {
|
||||
UncheckedWhoisException(WhoisException whoisException) {
|
||||
super(whoisException);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user