public static boolean isThrottlingException ( SdkBaseException exception ) { if ( ! isAse ( exception ) ) { return false ; } final AmazonServiceException ase = toAse ( exception ) ; return THROTTLING_ERROR_CODES . contains ( ase . getErrorCode ( ) ) || ase . getStatusCode ( ) == 429 ; }
Returns true if the specified exception is a throttling error .