static BaseServiceException translateAndThrow(RetryHelperException ex) {
    BaseServiceException.translate(ex);
    throw new TranslateException(UNKNOWN_CODE, ex.getMessage(), ex.getCause());
  }
Translate RetryHelperException to the TranslateException that caused the error. This method
will always throw an exception.

@throws TranslateException when {@code ex} was caused by a {@code TranslateException}
java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/TranslateException.java