com.azure.storage.blob.batch.BlobBatchStorageException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob-batch Show documentation
Show all versions of azure-storage-blob-batch Show documentation
This module contains client library for Microsoft Azure Blob Storage batching.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.blob.batch;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.http.HttpResponse;
import com.azure.storage.blob.models.BlobStorageException;
/**
* This exception class is an aggregate for {@link BlobStorageException BlobStorageExceptions}. This will contain all
* exceptions from a single batch operation.
*/
public final class BlobBatchStorageException extends HttpResponseException {
/**
* Exceptions returned by the batch response.
*/
private final Iterable exceptions;
BlobBatchStorageException(String message, HttpResponse response, Iterable exceptions) {
super(message, response);
this.exceptions = exceptions;
}
/**
* Gets all the exceptions thrown in a single batch request.
*
* @return All the exceptions thrown in a single batch request.
*/
public Iterable getBatchExceptions() {
return exceptions;
}
}