Class RetryUtils
- java.lang.Object
 - 
- software.amazon.awssdk.core.retry.RetryUtils
 
 
- 
public final class RetryUtils extends Object
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisClockSkewException(SdkException exception)Returns true if the specified exception is a clock skew error.static booleanisRequestEntityTooLargeException(SdkException exception)Returns true if the specified exception is a request entity too large error.static booleanisRetryableException(SdkException exception)Returns true if the specified exception is retryable.static booleanisServiceException(SdkException e)static booleanisThrottlingException(SdkException exception)Returns true if the specified exception is a throttling error.static SdkServiceExceptiontoServiceException(SdkException e) 
 - 
 
- 
- 
Method Detail
- 
isRequestEntityTooLargeException
public static boolean isRequestEntityTooLargeException(SdkException exception)
Returns true if the specified exception is a request entity too large error.- Parameters:
 exception- The exception to test.- Returns:
 - True if the exception resulted from a request entity too large error message from a service, otherwise false.
 
 
- 
isServiceException
public static boolean isServiceException(SdkException e)
 
- 
toServiceException
public static SdkServiceException toServiceException(SdkException e)
 
- 
isClockSkewException
public static boolean isClockSkewException(SdkException exception)
Returns true if the specified exception is a clock skew error.- Parameters:
 exception- The exception to test.- Returns:
 - True if the exception resulted from a clock skews error message from a service, otherwise false.
 
 
- 
isThrottlingException
public static boolean isThrottlingException(SdkException exception)
Returns true if the specified exception is a throttling error.- Parameters:
 exception- The exception to test.- Returns:
 - True if the exception resulted from a throttling error message from a service, otherwise false.
 
 
- 
isRetryableException
public static boolean isRetryableException(SdkException exception)
Returns true if the specified exception is retryable.- Parameters:
 exception- The exception to test.- Returns:
 - True if the exception resulted from an exception modeled as retryable.
 
 
 - 
 
 -