RetryUtils { public static boolean isRetryableServiceException(SdkBaseException exception) { return isAse(exception) && isRetryableServiceException(toAse(exception)); }  static boolean isRetryableServiceException(SdkBaseException exception); static boolean isRetryableServiceException(AmazonServiceException exception); static boolean isThrottlingException(SdkBaseException exception); static boolean isThrottlingException(AmazonServiceException exception); static boolean isRequestEntityTooLargeException(SdkBaseException exception); static boolean isRequestEntityTooLargeException(AmazonServiceException exception); static boolean isClockSkewError(SdkBaseException exception); static boolean isClockSkewError(AmazonServiceException exception);  }
@Test public void retriesOnPriorRequestNotCompleteErrorCode() { AmazonServiceException ase = new AmazonServiceException("msg"); ase.setStatusCode(500); ase.setErrorCode("PriorRequestNotComplete"); assertTrue("PriorRequestNotComplete should be retried", RetryUtils.isRetryableServiceException(ase)); }