AzureBlobContainer's deleteBlob method now throws a NoSuchFileException

instead of a vanilla IOException when the blob doesn't exist, in order
to conform to the BlobContainer's interface contract.
This commit is contained in:
Ali Beyad 2016-08-01 10:50:02 -04:00
parent ce8881513d
commit 401edeb0d8

View File

@ -119,7 +119,7 @@ public class AzureBlobContainer extends AbstractBlobContainer {
logger.trace("deleteBlob({})", blobName);
if (!blobExists(blobName)) {
throw new IOException("Blob [" + blobName + "] does not exist");
throw new NoSuchFileException("Blob [" + blobName + "] does not exist");
}
try {