mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
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:
parent
ce8881513d
commit
401edeb0d8
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user