throws CloudFrontServiceException { if(epochDateLessThan == null) { throw new CloudFrontServiceException( "epochDateLessThan must be provided to sign CloudFront URLs");
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
throw new CloudFrontServiceException("Encountered too many CloudFront Internal Server errors (" + internalErrorCount + "), aborting request."); response.getEntity().getContent()); CloudFrontServiceException exception = new CloudFrontServiceException( "Request failed with CloudFront Service error", responseCode, handler.getType(), handler.getCode(), handler.getRequestId()); if("RequestExpired".equals(exception.getErrorCode())) { throw new CloudFrontServiceException("CloudFront Request failed", t);
stopProgressDialog(); if ("OptInRequired".equals(e.getErrorCode())) { log.debug("Your AWS account is not subscribed to the Amazon CloudFront service, " + "you will not be able to manage distributions");
throw new CloudFrontServiceException("Encountered too many CloudFront Internal Server errors (" + internalErrorCount + "), aborting request."); response.getEntity().getContent()); CloudFrontServiceException exception = new CloudFrontServiceException( "Request failed with CloudFront Service error", responseCode, handler.getType(), handler.getCode(), handler.getRequestId()); if("RequestExpired".equals(exception.getErrorCode())) { throw new CloudFrontServiceException("CloudFront Request failed", t);
stopProgressDialog(); if ("OptInRequired".equals(e.getErrorCode())) { log.debug("Your AWS account is not subscribed to the Amazon CloudFront service, " + "you will not be able to manage distributions");
throws CloudFrontServiceException { if(epochDateLessThan == null) { throw new CloudFrontServiceException( "epochDateLessThan must be provided to sign CloudFront URLs");
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
throw new CloudFrontServiceException("Failed to parse XML document with handler " + handler.getClass(), t);
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
throw new CloudFrontServiceException("Failed to parse XML document with handler " + handler.getClass(), t);
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
throw new CloudFrontServiceException(e);
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
/** * List the Origin Access Identities in a CloudFront account. * * @return List of {@link OriginAccessIdentity} objects describing the identities. * @throws CloudFrontServiceException */ public List<OriginAccessIdentity> getOriginAccessIdentityList() throws CloudFrontServiceException { if(log.isDebugEnabled()) { log.debug("Getting list of origin access identities"); } HttpGet httpMethod = new HttpGet(ENDPOINT + VERSION + ORIGIN_ACCESS_IDENTITY_URI_PATH); try { HttpResponse response = performRestRequest(httpMethod, 200); OriginAccessIdentityListHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentityListResponse(response.getEntity().getContent()); return handler.getOriginAccessIdentityList(); } catch(CloudFrontServiceException e) { throw e; } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new CloudFrontServiceException(e); } }
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();
throw new CloudFrontServiceException("Unable to retrieve paginated " + "InvalidationList results without a valid NextMarker value."); throw new CloudFrontServiceException(e);
errorMessage = ((CloudFrontServiceException)e).getErrorMessage();