mirror of
https://github.com/apache/jclouds.git
synced 2025-02-07 02:29:25 +00:00
Proper exception to catch for methods with unchecked exception
This commit is contained in:
parent
590d0509cc
commit
9f2d94d725
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user