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 boolean
isClockSkewException(SdkException exception)
Returns true if the specified exception is a clock skew error.static boolean
isRequestEntityTooLargeException(SdkException exception)
Returns true if the specified exception is a request entity too large error.static boolean
isServiceException(SdkException e)
static boolean
isThrottlingException(SdkException exception)
Returns true if the specified exception is a throttling error.static SdkServiceException
toServiceException(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.
-
-