private void handleRetryableException(ExecOneRequestParams execOneParams, Exception e) { captureExceptionMetrics(e); awsRequestMetrics.addProperty(Field.AWSRequestID, null); SdkClientException sdkClientException; if (!(e instanceof SdkClientException)) { sdkClientException = new SdkClientException( "Unable to execute HTTP request: " + e.getMessage(), e); } else { sdkClientException = (SdkClientException) e; } boolean willRetry = shouldRetry(execOneParams, sdkClientException); if (log.isTraceEnabled()) { log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : ""), e); } else if (log.isDebugEnabled()) { log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : "")); } if (!willRetry) { throw lastReset(sdkClientException); } // Cache the retryable exception execOneParams.retriedException = sdkClientException; }
savedException = e; thrown = true; throw lastReset(captureExceptionMetrics(e)); } catch (Error e) { thrown = true; throw lastReset(captureExceptionMetrics(e)); } finally {
private void handleRetryableException(ExecOneRequestParams execOneParams, Exception e) { captureExceptionMetrics(e); awsRequestMetrics.addProperty(Field.AWSRequestID, null); SdkClientException sdkClientException; if (!(e instanceof SdkClientException)) { sdkClientException = new SdkClientException( "Unable to execute HTTP request: " + e.getMessage(), e); } else { sdkClientException = (SdkClientException) e; } boolean willRetry = shouldRetry(execOneParams, sdkClientException); if (log.isTraceEnabled()) { log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : ""), e); } else if (log.isDebugEnabled()) { log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : "")); } if (!willRetry) { throw lastReset(sdkClientException); } // Cache the retryable exception execOneParams.retriedException = sdkClientException; }
} catch (RuntimeException e) { savedException = e; throw lastReset(captureExceptionMetrics(e)); } catch (Error e) { throw lastReset(captureExceptionMetrics(e)); } finally {
private void handleRetryableException(ExecOneRequestParams execOneParams, Exception e) { captureExceptionMetrics(e); awsRequestMetrics.addProperty(Field.AWSRequestID, null); SdkClientException sdkClientException; if (!(e instanceof SdkClientException)) { sdkClientException = new SdkClientException( "Unable to execute HTTP request: " + e.getMessage(), e); } else { sdkClientException = (SdkClientException) e; } boolean willRetry = shouldRetry(execOneParams, sdkClientException); if (log.isTraceEnabled()) { log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : ""), e); } else if (log.isDebugEnabled()) { log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : "")); } if (!willRetry) { throw lastReset(sdkClientException); } // Cache the retryable exception execOneParams.retriedException = sdkClientException; }
savedException = e; thrown = true; throw lastReset(captureExceptionMetrics(e)); } catch (Error e) { thrown = true; throw lastReset(captureExceptionMetrics(e)); } finally {