Proper exception to catch for methods with unchecked exception

This commit is contained in:
Ignasi Barrera 2019-06-15 10:45:04 +02:00
parent 215df85105
commit cd7b3b9b36
No known key found for this signature in database
GPG Key ID: 3D5414A0D959B94F
1 changed files with 1 additions and 1 deletions

View File

@ -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;