/** * 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} * @throws RetryInterruptedException when {@code ex} is a {@code RetryInterruptedException} */ static BaseServiceException translateAndThrow(RetryHelperException ex) { BaseServiceException.translateAndPropagateIfPossible(ex); throw new TranslateException(UNKNOWN_CODE, ex.getMessage(), ex.getCause()); } }
/** * Translate RetryHelperException to the BigQueryException that caused the error. This method will * always throw an exception. * * @throws BigQueryException when {@code ex} was caused by a {@code BigQueryException} * @throws RetryInterruptedException when {@code ex} is a {@code RetryInterruptedException} */ static BaseServiceException translateAndThrow(RetryHelperException ex) { BaseServiceException.translateAndPropagateIfPossible(ex); throw new BigQueryException(UNKNOWN_CODE, ex.getMessage(), ex.getCause()); } }
/** * Translate RetryHelperException to the DnsException that caused the error. This method will * always throw an exception. * * @throws DnsException when {@code ex} was caused by a {@code DnsException} * @throws RetryInterruptedException when {@code ex} is a {@code RetryInterruptedException} */ static DnsException translateAndThrow(RetryHelperException ex) { BaseServiceException.translateAndPropagateIfPossible(ex); throw new DnsException(UNKNOWN_CODE, ex.getMessage(), ex.getCause()); } }
/** * Translate RetryHelperException to the ComputeException that caused the error. This method will * always throw an exception. * * @throws ComputeException when {@code ex} was caused by a {@code ComputeException} * @throws RetryInterruptedException when {@code ex} is a {@code RetryInterruptedException} */ static BaseServiceException translateAndThrow(RetryHelperException ex) { BaseServiceException.translateAndPropagateIfPossible(ex); throw new ComputeException(UNKNOWN_CODE, ex.getMessage(), ex.getCause()); } }
/** * Translate RetryHelperException to the ResourceManagerException that caused the error. This * method will always throw an exception. * * @throws ResourceManagerException when {@code ex} was caused by a {@code * ResourceManagerException} * @throws RetryInterruptedException when {@code ex} is a {@code RetryInterruptedException} */ static ResourceManagerException translateAndThrow(RetryHelperException ex) { BaseServiceException.translateAndPropagateIfPossible(ex); throw new ResourceManagerException(UNKNOWN_CODE, ex.getMessage(), ex.getCause()); } }