public Builder setIfExceptionIsAllowedToRetry(
        Class<? extends ApiException> exception, boolean allowedToRetry) {
      if (allowedToRetry) {
        exceptionsAllowedToRetry.add(exception);
      } else {
        exceptionsAllowedToRetry.remove(exception);
      }
      return this;
    }
Allows specific API exceptions to be retried or not retried.

@param exception The {@code ApiException} to allow or deny being re-tried.
@param allowedToRetry Whether to allow or deny re-trying {@code exception}.
@return Returns this builder for call chaining.
src/main/java/com/google/maps/GeoApiContext.java