// this should never occur since amount is minimum zero (Math.max)
LOGGER.error(String.format("Illegal amount of tokens added to bucket: %s", amount),iae);
throw iae;
}
if (result == ACCESS_DENIED) {
throw new RDAPErrorException(TOO_MANY_REQUESTS_HTTP_CODE, "Too many requests");
}
return result;
}