You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2019/06/17 07:59:27 UTC

[jclouds] branch master updated: Proper exception to catch for methods with unchecked exception

This is an automated email from the ASF dual-hosted git repository.

nacx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jclouds.git


The following commit(s) were added to refs/heads/master by this push:
     new cd7b3b9  Proper exception to catch for methods with unchecked exception
cd7b3b9 is described below

commit cd7b3b9b36a1d87dc65e6e8aff982ae39f2cc145
Author: Ignasi Barrera <na...@apache.org>
AuthorDate: Sat Jun 15 10:45:04 2019 +0200

    Proper exception to catch for methods with unchecked exception
---
 .../azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
index d7e0c6c..f485add 100644
--- a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
+++ b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/functions/BlobPropertiesToBlobMetadata.java
@@ -60,7 +60,7 @@ public class BlobPropertiesToBlobMetadata implements Function<BlobProperties, Mu
             PublicAccess containerAcl = containerAcls.getUnchecked(from.getContainer());
             if (containerAcl != PublicAccess.PRIVATE)
                to.setPublicUri(from.getUrl());
-         } catch (Exception ex) {
+         } catch (RuntimeException ex) {
             //AzureBlob is not a publicly accessible object, but it is impossible to obtain ACL using SAS Auth. 
             InsufficientAccessRightsException iare = Throwables2.getFirstThrowableOfType(ex, InsufficientAccessRightsException.class);
             if (iare == null) throw ex;