diff --git a/sdk/storage/azure-storage-blob-batch/src/main/java/com/azure/storage/blob/batch/BlobBatchHelper.java b/sdk/storage/azure-storage-blob-batch/src/main/java/com/azure/storage/blob/batch/BlobBatchHelper.java index 9f053f17d906..46dbe6a0e5fd 100644 --- a/sdk/storage/azure-storage-blob-batch/src/main/java/com/azure/storage/blob/batch/BlobBatchHelper.java +++ b/sdk/storage/azure-storage-blob-batch/src/main/java/com/azure/storage/blob/batch/BlobBatchHelper.java @@ -3,6 +3,7 @@ package com.azure.storage.blob.batch; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.HttpResponse; @@ -61,7 +62,7 @@ static Mono> mapBatchResponse(BlobBatchOperationInfo batchO * Content-Type will contain the boundary for each batch response. The expected format is: * "Content-Type: multipart/mixed; boundary=batchresponse_66925647-d0cb-4109-b6d3-28efe3e1e5ed" */ - String contentType = rawResponse.getHeaders().getValue(Constants.HeaderConstants.CONTENT_TYPE); + String contentType = rawResponse.getHeaders().getValue(HttpHeaderName.CONTENT_TYPE); // Split on the boundary [ "multipart/mixed; boundary", "batchresponse_66925647-d0cb-4109-b6d3-28efe3e1e5ed"] String[] boundaryPieces = contentType.split("=", 2); @@ -94,7 +95,7 @@ static Mono> mapBatchResponse(BlobBatchOperationInfo batchO HttpHeaders headers = getHttpHeaders(exceptionSections[1]); sink.error(logger.logExceptionAsError(new BlobStorageException( - headers.getValue(Constants.HeaderConstants.ERROR_CODE), + headers.getValue(Constants.HeaderConstants.ERROR_CODE_HEADER_NAME), createHttpResponse(rawResponse.getRequest(), statusCode, headers, body), body))); } @@ -123,7 +124,7 @@ static Mono> mapBatchResponse(BlobBatchOperationInfo batchO } } - if (throwOnAnyFailure && exceptions.size() != 0) { + if (throwOnAnyFailure && !exceptions.isEmpty()) { sink.error(logger.logExceptionAsError(new BlobBatchStorageException("Batch had operation failures.", createHttpResponse(rawResponse), exceptions))); } diff --git a/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/BlobDecryptionPolicy.java b/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/BlobDecryptionPolicy.java index c2ddec8fdfd8..b22d75c91533 100644 --- a/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/BlobDecryptionPolicy.java +++ b/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/BlobDecryptionPolicy.java @@ -5,6 +5,7 @@ import com.azure.core.cryptography.AsyncKeyEncryptionKey; import com.azure.core.cryptography.AsyncKeyEncryptionKeyResolver; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpMethod; import com.azure.core.http.HttpPipelineCallContext; @@ -14,7 +15,6 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.storage.blob.models.BlobRange; -import com.azure.storage.common.implementation.Constants; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -23,10 +23,7 @@ import java.nio.charset.Charset; import java.util.concurrent.atomic.AtomicLong; -import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.CONTENT_LENGTH; -import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.CONTENT_RANGE; import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.ENCRYPTION_BLOCK_SIZE; -import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.ENCRYPTION_DATA_KEY; import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.ENCRYPTION_METADATA_HEADER; import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.ENCRYPTION_PROTOCOL_V1; import static com.azure.storage.blob.specialized.cryptography.CryptographyConstants.RANGE_HEADER; @@ -95,8 +92,7 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN * didn't expand the range at all. */ EncryptionData encryptionData = EncryptionData.getAndValidateEncryptionData( - httpResponse.getHeaderValue(Constants.HeaderConstants.X_MS_META + "-" - + ENCRYPTION_DATA_KEY), requiresEncryption); + httpResponse.getHeaderValue(ENCRYPTION_METADATA_HEADER), requiresEncryption); // If there was no encryption data, it was either an error response or the blob is not encrypted. if (!isEncryptedBlob(encryptionData)) { return Mono.just(httpResponse); @@ -110,7 +106,7 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN */ EncryptedBlobRange encryptedRange = new EncryptedBlobRange(new BlobRange(0), encryptionData); encryptedRange.setAdjustedDownloadCount( - Long.parseLong(responseHeaders.getValue(CONTENT_LENGTH))); + Long.parseLong(responseHeaders.getValue(HttpHeaderName.CONTENT_LENGTH))); boolean padding = hasPadding(responseHeaders, encryptionData, encryptedRange); @@ -147,7 +143,7 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN return httpResponse; } encryptedRange.setAdjustedDownloadCount( - Long.parseLong(responseHeaders.getValue(CONTENT_LENGTH))); + Long.parseLong(responseHeaders.getValue(HttpHeaderName.CONTENT_LENGTH))); /* * We expect padding only if we are at the end of a blob and it is not a multiple of the @@ -325,12 +321,12 @@ Flux trimData(EncryptedBlobRange encryptedBlobRange, private Long blobSize(HttpHeaders headers) { // e.g. 0-5/1024 - if (headers.getValue(CONTENT_RANGE) != null) { - String range = headers.getValue(CONTENT_RANGE); + if (headers.getValue(HttpHeaderName.CONTENT_RANGE) != null) { + String range = headers.getValue(HttpHeaderName.CONTENT_RANGE); return Long.valueOf(range.split("/")[1]); } else { // If there was no content range header, we requested a full blob, so the blobSize = contentLength - return Long.valueOf(headers.getValue(CONTENT_LENGTH)); + return Long.valueOf(headers.getValue(HttpHeaderName.CONTENT_LENGTH)); } } diff --git a/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/CryptographyConstants.java b/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/CryptographyConstants.java index e24c89183168..9cf27df1abe2 100644 --- a/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/CryptographyConstants.java +++ b/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/CryptographyConstants.java @@ -3,6 +3,7 @@ package com.azure.storage.blob.specialized.cryptography; +import com.azure.core.http.HttpHeaderName; import com.azure.core.util.CoreUtils; import com.azure.storage.common.implementation.Constants; @@ -30,18 +31,14 @@ final class CryptographyConstants { static final String ENCRYPTION_DATA_KEY = "encryptiondata"; - static final String ENCRYPTION_METADATA_HEADER = Constants.HeaderConstants.X_MS_META + "-" - + ENCRYPTION_DATA_KEY; + static final HttpHeaderName ENCRYPTION_METADATA_HEADER + = HttpHeaderName.fromString(Constants.HeaderConstants.X_MS_META + "-" + ENCRYPTION_DATA_KEY); static final String ENCRYPTION_MODE = "FullBlob"; static final int ENCRYPTION_BLOCK_SIZE = 16; - static final String RANGE_HEADER = "x-ms-range"; - - static final String CONTENT_RANGE = "Content-Range"; - - static final String CONTENT_LENGTH = "Content-Length"; + static final HttpHeaderName RANGE_HEADER = HttpHeaderName.fromString("x-ms-range"); static final int NONCE_LENGTH = 12; diff --git a/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClientBuilder.java b/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClientBuilder.java index 5edb47a7c724..50c87310e2a5 100644 --- a/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClientBuilder.java +++ b/sdk/storage/azure-storage-blob-cryptography/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClientBuilder.java @@ -17,6 +17,7 @@ import com.azure.core.cryptography.AsyncKeyEncryptionKey; import com.azure.core.cryptography.AsyncKeyEncryptionKeyResolver; import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; @@ -172,6 +173,7 @@ public EncryptedBlobClientBuilder() { * preferred for security reasons, though v1 continues to be supported for compatibility reasons. Note that even a * client configured to encrypt using v2 can decrypt blobs that use the v1 protocol. */ + @SuppressWarnings("deprecation") public EncryptedBlobClientBuilder(EncryptionVersion version) { Objects.requireNonNull(version); logOptions = getDefaultHttpLogOptions(); @@ -321,8 +323,7 @@ private HttpPipeline getHttpPipeline() { List policies = new ArrayList<>(); policies.add(new BlobDecryptionPolicy(keyWrapper, keyResolver, requiresEncryption)); - String applicationId = clientOptions.getApplicationId() != null ? clientOptions.getApplicationId() - : logOptions.getApplicationId(); + String applicationId = CoreUtils.getApplicationId(clientOptions, logOptions); // adding modified user-agent string that will contain "azstorage-clientsideencryption/" + encryption version String modifiedUserAgent = modifyUserAgentString(applicationId, userAgentConfiguration); @@ -338,9 +339,8 @@ private HttpPipeline getHttpPipeline() { // We need to place this policy right before the credential policy since headers may affect the string to sign // of the request. - HttpHeaders headers = new HttpHeaders(); - clientOptions.getHeaders().forEach(header -> headers.put(header.getName(), header.getValue())); - if (headers.getSize() > 0) { + HttpHeaders headers = CoreUtils.createHttpHeadersFromClientOptions(clientOptions); + if (headers != null) { policies.add(new AddHeadersPolicy(headers)); } policies.add(new MetadataValidationPolicy()); @@ -361,8 +361,8 @@ private HttpPipeline getHttpPipeline() { HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new ResponseValidationPolicyBuilder() - .addOptionalEcho(Constants.HeaderConstants.CLIENT_REQUEST_ID) - .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) + .addOptionalEcho(HttpHeaderName.X_MS_CLIENT_REQUEST_ID) + .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME) .build()); policies.add(new HttpLoggingPolicy(logOptions)); @@ -711,7 +711,7 @@ public EncryptedBlobClientBuilder configuration(Configuration configuration) { /** * Sets the request retry options for all the requests made through the client. - * + *

* Setting this is mutually exclusive with using {@link #retryOptions(RetryOptions)}. * * @param retryOptions {@link RequestRetryOptions}. diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobContainerAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobContainerAsyncClient.java index acb0148b497a..1d53e8fe0e45 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobContainerAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobContainerAsyncClient.java @@ -427,7 +427,8 @@ Mono> createWithResponse(Map metadata, PublicAcce Context context) { context = context == null ? Context.NONE : context; return this.azureBlobStorage.getContainers().createNoCustomHeadersWithResponseAsync(containerName, null, - metadata, accessType, null, blobContainerEncryptionScope, context); + metadata, accessType, null, blobContainerEncryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -575,7 +576,8 @@ Mono> deleteWithResponse(BlobRequestConditions requestConditions, return this.azureBlobStorage.getContainers().deleteNoCustomHeadersWithResponseAsync(containerName, null, requestConditions.getLeaseId(), requestConditions.getIfModifiedSince(), - requestConditions.getIfUnmodifiedSince(), null, context); + requestConditions.getIfUnmodifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -716,6 +718,7 @@ Mono> getPropertiesWithResponse(String leaseId return this.azureBlobStorage.getContainers() .getPropertiesWithResponseAsync(containerName, null, leaseId, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { ContainersGetPropertiesHeaders hd = rb.getDeserializedHeaders(); BlobContainerProperties properties = new BlobContainerProperties(hd.getXMsMeta(), hd.getETag(), @@ -799,7 +802,8 @@ Mono> setMetadataWithResponse(Map metadata, } return this.azureBlobStorage.getContainers().setMetadataNoCustomHeadersWithResponseAsync(containerName, null, - requestConditions.getLeaseId(), metadata, requestConditions.getIfModifiedSince(), null, context); + requestConditions.getLeaseId(), metadata, requestConditions.getIfModifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -867,6 +871,7 @@ Mono> getAccessPolicyWithResponse(String l context = context == null ? Context.NONE : context; return this.azureBlobStorage.getContainers().getAccessPolicyWithResponseAsync( containerName, null, leaseId, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new SimpleResponse<>(response, new BlobContainerAccessPolicies(response.getDeserializedHeaders().getXMsBlobPublicAccess(), response.getValue().items()))); @@ -990,7 +995,8 @@ OffsetDateTime.now will only give back milliseconds (more precise fields are zer return this.azureBlobStorage.getContainers().setAccessPolicyNoCustomHeadersWithResponseAsync(containerName, null, requestConditions.getLeaseId(), accessType, requestConditions.getIfModifiedSince(), - requestConditions.getIfUnmodifiedSince(), null, identifiers, context); + requestConditions.getIfUnmodifiedSince(), null, identifiers, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1197,7 +1203,8 @@ PagedFlux listBlobsFlatWithOptionalTimeout(ListBlobsOptions options, S return StorageImplUtils.applyOptionalTimeout( this.azureBlobStorage.getContainers().listBlobFlatSegmentWithResponseAsync(containerName, options.getPrefix(), marker, options.getMaxResultsPerPage(), include, null, null, Context.NONE), - timeout); + timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1371,7 +1378,8 @@ PagedFlux listBlobsHierarchyWithOptionalTimeout(String delimiter, List this.azureBlobStorage.getContainers().listBlobHierarchySegmentWithResponseAsync(containerName, delimiter, options.getPrefix(), marker, options.getMaxResultsPerPage(), include, null, null, Context.NONE), - timeout); + timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1454,6 +1462,7 @@ private Mono> findBlobsByTags( return StorageImplUtils.applyOptionalTimeout( this.azureBlobStorage.getContainers().filterBlobsWithResponseAsync(containerName, null, null, options.getQuery(), marker, options.getMaxResultsPerPage(), null, context), timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> { List value = response.getValue().getBlobs().stream() .map(ModelHelper::populateTaggedBlobItem) @@ -1520,6 +1529,7 @@ public Mono> getAccountInfoWithResponse() { Mono> getAccountInfoWithResponse(Context context) { context = context == null ? Context.NONE : context; return this.azureBlobStorage.getContainers().getAccountInfoWithResponseAsync(containerName, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { ContainersGetAccountInfoHeaders hd = rb.getDeserializedHeaders(); return new SimpleResponse<>(rb, new StorageAccountInfo(hd.getXMsSkuName(), hd.getXMsAccountKind())); @@ -1562,6 +1572,7 @@ Mono> getAccountInfoWithResponse(Context context) { // return this.azureBlobStorage.getContainers().renameWithResponseAsync(containerName, // sourceContainerName, null, null, requestConditions.getLeaseId(), // context) +// .onErrorMap(ModelHelper::mapToBlobStorageException) // .map(response -> new SimpleResponse<>(response, this)); // } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobServiceAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobServiceAsyncClient.java index 3842d2b3e621..729889954532 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobServiceAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobServiceAsyncClient.java @@ -539,7 +539,8 @@ private Mono> listBlobContainersSegment(String this.azureBlobStorage.getServices().listBlobContainersSegmentSinglePageAsync( options.getPrefix(), marker, options.getMaxResultsPerPage(), toIncludeTypes(options.getDetails()), - null, null, Context.NONE), timeout); + null, null, Context.NONE), timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -613,6 +614,7 @@ private Mono> findBlobsByTags( return StorageImplUtils.applyOptionalTimeout( this.azureBlobStorage.getServices().filterBlobsWithResponseAsync(null, null, options.getQuery(), marker, options.getMaxResultsPerPage(), null, context), timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> { List value = response.getValue().getBlobs().stream() .map(ModelHelper::populateTaggedBlobItem) @@ -710,6 +712,7 @@ Mono> getPropertiesWithResponse(Context context) context = context == null ? Context.NONE : context; throwOnAnonymousAccess(); return this.azureBlobStorage.getServices().getPropertiesWithResponseAsync(null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getValue())); } @@ -856,7 +859,8 @@ Mono> setPropertiesWithResponse(BlobServiceProperties properties, context = context == null ? Context.NONE : context; return this.azureBlobStorage.getServices() - .setPropertiesNoCustomHeadersWithResponseAsync(finalProperties, null, null, context); + .setPropertiesNoCustomHeadersWithResponseAsync(finalProperties, null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -960,6 +964,7 @@ Mono> getUserDelegationKeyWithResponse(OffsetDateTim .setStart(start == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(start)) .setExpiry(Constants.ISO_8601_UTC_DATE_FORMATTER.format(expiry)), null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getValue())); } @@ -1017,6 +1022,7 @@ Mono> getStatisticsWithResponse(Context context) context = context == null ? Context.NONE : context; return this.azureBlobStorage.getServices().getStatisticsWithResponseAsync(null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getValue())); } @@ -1068,6 +1074,7 @@ public Mono> getAccountInfoWithResponse() { Mono> getAccountInfoWithResponse(Context context) { throwOnAnonymousAccess(); return this.azureBlobStorage.getServices().getAccountInfoWithResponseAsync(context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { ServicesGetAccountInfoHeaders hd = rb.getDeserializedHeaders(); return new SimpleResponse<>(rb, new StorageAccountInfo(hd.getXMsSkuName(), hd.getXMsAccountKind(), @@ -1269,6 +1276,7 @@ Mono> undeleteBlobContainerWithResponse( context = context == null ? Context.NONE : context; return this.azureBlobStorage.getContainers().restoreWithResponseAsync(finalDestinationContainerName, null, null, options.getDeletedContainerName(), options.getDeletedContainerVersion(), context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new SimpleResponse<>(response, getBlobContainerAsyncClient(finalDestinationContainerName))); } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/AppendBlobsImpl.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/AppendBlobsImpl.java index c6b3dbbf29b9..09a7e2b2d317 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/AppendBlobsImpl.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/AppendBlobsImpl.java @@ -28,10 +28,10 @@ import com.azure.storage.blob.implementation.models.AppendBlobsAppendBlockHeaders; import com.azure.storage.blob.implementation.models.AppendBlobsCreateHeaders; import com.azure.storage.blob.implementation.models.AppendBlobsSealHeaders; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.EncryptionScope; import com.azure.storage.blob.models.BlobHttpHeaders; import com.azure.storage.blob.models.BlobImmutabilityPolicyMode; -import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.CpkInfo; import com.azure.storage.blob.models.EncryptionAlgorithmType; import java.nio.ByteBuffer; @@ -74,7 +74,7 @@ public final class AppendBlobsImpl { public interface AppendBlobsService { @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -101,7 +101,7 @@ Mono> create(@HostParam("url") Stri @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -128,7 +128,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> appendBlock(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -151,7 +151,7 @@ Mono> appendBlock(@HostParam(" @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> appendBlockNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -174,7 +174,7 @@ Mono> appendBlockNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> appendBlock(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -197,7 +197,7 @@ Mono> appendBlock(@HostParam(" @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> appendBlockNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -220,7 +220,7 @@ Mono> appendBlockNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> appendBlockFromUrl(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-copy-source") String sourceUrl, @@ -249,7 +249,7 @@ Mono> appendBlockFromUr @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> appendBlockFromUrlNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-copy-source") String sourceUrl, @@ -278,7 +278,7 @@ Mono> appendBlockFromUrlNoCustomHeaders(@HostParam("url") String @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> seal(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -292,7 +292,7 @@ Mono> seal(@HostParam("url") String u @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> sealNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -338,7 +338,7 @@ Mono> sealNoCustomHeaders(@HostParam("url") String url, * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -450,7 +450,7 @@ public Mono> createWithResponseAsyn * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -560,7 +560,7 @@ public Mono> createWithResponseAsyn * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -610,7 +610,7 @@ public Mono createAsync(String containerName, String blob, long contentLen * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -659,7 +659,7 @@ public Mono createAsync(String containerName, String blob, long contentLen * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -771,7 +771,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String contai * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -884,7 +884,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String contai * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -965,7 +965,7 @@ public Mono> appendBlockWithRe * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1045,7 +1045,7 @@ public Mono> appendBlockWithRe * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1095,7 +1095,7 @@ public Mono appendBlockAsync(String containerName, String blob, long conte * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1145,7 +1145,7 @@ public Mono appendBlockAsync(String containerName, String blob, long conte * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1226,7 +1226,7 @@ public Mono> appendBlockNoCustomHeadersWithResponseAsync(String c * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1306,7 +1306,7 @@ public Mono> appendBlockNoCustomHeadersWithResponseAsync(String c * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1387,7 +1387,7 @@ public Mono> appendBlockWithRe * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1467,7 +1467,7 @@ public Mono> appendBlockWithRe * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1517,7 +1517,7 @@ public Mono appendBlockAsync(String containerName, String blob, long conte * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1567,7 +1567,7 @@ public Mono appendBlockAsync(String containerName, String blob, long conte * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1648,7 +1648,7 @@ public Mono> appendBlockNoCustomHeadersWithResponseAsync(String c * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1739,7 +1739,7 @@ public Mono> appendBlockNoCustomHeadersWithResponseAsync(String c * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1841,7 +1841,7 @@ public Mono> appendBloc * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1941,7 +1941,7 @@ public Mono> appendBloc * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2007,7 +2007,7 @@ public Mono appendBlockFromUrlAsync(String containerName, String blob, Str * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2072,7 +2072,7 @@ public Mono appendBlockFromUrlAsync(String containerName, String blob, Str * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2173,7 +2173,7 @@ public Mono> appendBlockFromUrlNoCustomHeadersWithResponseAsync(S * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2249,7 +2249,7 @@ public Mono> appendBlockFromUrlNoCustomHeadersWithResponseAsync(S * is not, the request will fail with the AppendPositionConditionNotMet error (HTTP status code 412 - Precondition * Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2292,7 +2292,7 @@ public Mono> sealWithResponseAsync(St * Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2334,7 +2334,7 @@ public Mono> sealWithResponseAsync(St * is not, the request will fail with the AppendPositionConditionNotMet error (HTTP status code 412 - Precondition * Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2370,7 +2370,7 @@ public Mono sealAsync(String containerName, String blob, Integer timeout, * Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2405,7 +2405,7 @@ public Mono sealAsync(String containerName, String blob, Integer timeout, * is not, the request will fail with the AppendPositionConditionNotMet error (HTTP status code 412 - Precondition * Failed). * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2448,7 +2448,7 @@ public Mono> sealNoCustomHeadersWithResponseAsync(String containe * Failed). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java index 8a32be5c86e3..a486f7542d11 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java @@ -53,6 +53,7 @@ import com.azure.storage.blob.implementation.models.BlobsSetTagsHeaders; import com.azure.storage.blob.implementation.models.BlobsSetTierHeaders; import com.azure.storage.blob.implementation.models.BlobsStartCopyFromURLHeaders; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.BlobsUndeleteHeaders; import com.azure.storage.blob.implementation.models.BlobTags; import com.azure.storage.blob.implementation.models.EncryptionScope; @@ -61,7 +62,6 @@ import com.azure.storage.blob.models.BlobCopySourceTagsMode; import com.azure.storage.blob.models.BlobHttpHeaders; import com.azure.storage.blob.models.BlobImmutabilityPolicyMode; -import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.CpkInfo; import com.azure.storage.blob.models.DeleteSnapshotsOptionType; import com.azure.storage.blob.models.EncryptionAlgorithmType; @@ -105,7 +105,7 @@ public final class BlobsImpl { public interface BlobsService { @Get("/{containerName}/{blob}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono>> download(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("snapshot") String snapshot, @QueryParam("versionid") String versionId, @@ -125,7 +125,7 @@ Mono>> download(@HostParam(" @Get("/{containerName}/{blob}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono downloadNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("snapshot") String snapshot, @QueryParam("versionid") String versionId, @@ -145,7 +145,7 @@ Mono downloadNoCustomHeaders(@HostParam("url") String url, @Head("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("snapshot") String snapshot, @QueryParam("versionid") String versionId, @@ -162,7 +162,7 @@ Mono> getProperties(@HostParam("ur @Head("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("snapshot") String snapshot, @QueryParam("versionid") String versionId, @@ -179,7 +179,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Delete("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("snapshot") String snapshot, @QueryParam("versionid") String versionId, @@ -195,7 +195,7 @@ Mono> delete(@HostParam("url") String url @Delete("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("snapshot") String snapshot, @QueryParam("versionid") String versionId, @@ -211,7 +211,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> undelete(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -220,7 +220,7 @@ Mono> undelete(@HostParam("url") String @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> undeleteNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -229,7 +229,7 @@ Mono> undeleteNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setExpiry(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -239,7 +239,7 @@ Mono> setExpiry(@HostParam("url") Stri @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setExpiryNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -249,7 +249,7 @@ Mono> setExpiryNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setHttpHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -269,7 +269,7 @@ Mono> setHttpHeaders(@HostParam(" @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setHttpHeadersNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -289,7 +289,7 @@ Mono> setHttpHeadersNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setImmutabilityPolicy(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -301,7 +301,7 @@ Mono> setImmutabilityPolic @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setImmutabilityPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -313,7 +313,7 @@ Mono> setImmutabilityPolicyNoCustomHeaders(@HostParam("url") Stri @Delete("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> deleteImmutabilityPolicy( @HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -322,7 +322,7 @@ Mono> deleteImmutabilit @Delete("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> deleteImmutabilityPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -331,7 +331,7 @@ Mono> deleteImmutabilityPolicyNoCustomHeaders(@HostParam("url") S @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setLegalHold(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -340,7 +340,7 @@ Mono> setLegalHold(@HostParam("url" @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setLegalHoldNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -349,7 +349,7 @@ Mono> setLegalHoldNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setMetadata(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -367,7 +367,7 @@ Mono> setMetadata(@HostParam("url") @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -385,7 +385,7 @@ Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> acquireLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -400,7 +400,7 @@ Mono> acquireLease(@HostParam("url" @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -415,7 +415,7 @@ Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> releaseLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -429,7 +429,7 @@ Mono> releaseLease(@HostParam("url" @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -443,7 +443,7 @@ Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> renewLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -457,7 +457,7 @@ Mono> renewLease(@HostParam("url") St @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> renewLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -471,7 +471,7 @@ Mono> renewLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> changeLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -486,7 +486,7 @@ Mono> changeLease(@HostParam("url") @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -501,7 +501,7 @@ Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> breakLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -515,7 +515,7 @@ Mono> breakLease(@HostParam("url") St @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -529,7 +529,7 @@ Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> createSnapshot(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -547,7 +547,7 @@ Mono> createSnapshot(@HostParam(" @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> createSnapshotNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -565,7 +565,7 @@ Mono> createSnapshotNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> startCopyFromURL(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -589,7 +589,7 @@ Mono> startCopyFromURL(@HostPar @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> startCopyFromURLNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -613,7 +613,7 @@ Mono> startCopyFromURLNoCustomHeaders(@HostParam("url") String ur @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> copyFromURL(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-requires-sync") String xMsRequiresSync, @QueryParam("timeout") Integer timeout, @@ -640,7 +640,7 @@ Mono> copyFromURL(@HostParam("url") @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> copyFromURLNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-requires-sync") String xMsRequiresSync, @QueryParam("timeout") Integer timeout, @@ -667,7 +667,7 @@ Mono> copyFromURLNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> abortCopyFromURL(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-copy-action") String copyActionAbortConstant, @@ -678,7 +678,7 @@ Mono> abortCopyFromURL(@HostPar @Put("/{containerName}/{blob}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> abortCopyFromURLNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-copy-action") String copyActionAbortConstant, @@ -689,7 +689,7 @@ Mono> abortCopyFromURLNoCustomHeaders(@HostParam("url") String ur @Put("/{containerName}/{blob}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setTier(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -702,7 +702,7 @@ Mono> setTier(@HostParam("url") String u @Put("/{containerName}/{blob}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setTierNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -715,7 +715,7 @@ Mono> setTierNoCustomHeaders(@HostParam("url") String url, @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccountInfo(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -723,7 +723,7 @@ Mono> getAccountInfo(@HostParam(" @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccountInfoNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -731,7 +731,7 @@ Mono> getAccountInfoNoCustomHeaders(@HostParam("url") String url, @Post("/{containerName}/{blob}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono>> query(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -749,7 +749,7 @@ Mono>> query(@HostParam("url") @Post("/{containerName}/{blob}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono queryNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -767,7 +767,7 @@ Mono queryNoCustomHeaders(@HostParam("url") String url, @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getTags(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -778,7 +778,7 @@ Mono> getTags(@HostParam("url") Stri @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getTagsNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -789,7 +789,7 @@ Mono> getTagsNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setTags(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-version") String version, @@ -802,7 +802,7 @@ Mono> setTags(@HostParam("url") String u @Put("/{containerName}/{blob}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setTagsNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-version") String version, @@ -846,7 +846,7 @@ Mono> setTagsNoCustomHeaders(@HostParam("url") String url, * analytics logs when storage analytics logging is enabled. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -915,7 +915,7 @@ public Mono>> downloadWithRe * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -983,7 +983,7 @@ public Mono>> downloadWithRe * analytics logs when storage analytics logging is enabled. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1030,7 +1030,7 @@ public Flux downloadAsync(String containerName, String blob, String * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1076,7 +1076,7 @@ public Flux downloadAsync(String containerName, String blob, String * analytics logs when storage analytics logging is enabled. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1144,7 +1144,7 @@ public Mono downloadNoCustomHeadersWithResponseAsync(String cont * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1206,7 +1206,7 @@ public Mono downloadNoCustomHeadersWithResponseAsync(String cont * analytics logs when storage analytics logging is enabled. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1269,7 +1269,7 @@ public Mono> getPropertiesWithResp * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1331,7 +1331,7 @@ public Mono> getPropertiesWithResp * analytics logs when storage analytics logging is enabled. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1372,7 +1372,7 @@ public Mono getPropertiesAsync(String containerName, String blob, String s * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1412,7 +1412,7 @@ public Mono getPropertiesAsync(String containerName, String blob, String s * analytics logs when storage analytics logging is enabled. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1475,7 +1475,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1554,7 +1554,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param blobDeleteType Optional. Only possible value is 'permanent', which specifies to permanently delete a blob * if blob soft delete is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1618,7 +1618,7 @@ public Mono> deleteWithResponseAsync(Stri * if blob soft delete is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1681,7 +1681,7 @@ public Mono> deleteWithResponseAsync(Stri * @param blobDeleteType Optional. Only possible value is 'permanent', which specifies to permanently delete a blob * if blob soft delete is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1740,7 +1740,7 @@ public Mono deleteAsync(String containerName, String blob, String snapshot * if blob soft delete is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1798,7 +1798,7 @@ public Mono deleteAsync(String containerName, String blob, String snapshot * @param blobDeleteType Optional. Only possible value is 'permanent', which specifies to permanently delete a blob * if blob soft delete is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1863,7 +1863,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String contai * if blob soft delete is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1893,7 +1893,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String contai * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1918,7 +1918,7 @@ public Mono> undeleteWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1942,7 +1942,7 @@ public Mono> undeleteWithResponseAsync( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1963,7 +1963,7 @@ public Mono undeleteAsync(String containerName, String blob, Integer timeo * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1985,7 +1985,7 @@ public Mono undeleteAsync(String containerName, String blob, Integer timeo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2010,7 +2010,7 @@ public Mono> undeleteNoCustomHeadersWithResponseAsync(String cont * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2036,7 +2036,7 @@ public Mono> undeleteNoCustomHeadersWithResponseAsync(String cont * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2063,7 +2063,7 @@ public Mono> setExpiryWithResponseAsyn * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2089,7 +2089,7 @@ public Mono> setExpiryWithResponseAsyn * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2114,7 +2114,7 @@ public Mono setExpiryAsync(String containerName, String blob, BlobExpiryOp * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2138,7 +2138,7 @@ public Mono setExpiryAsync(String containerName, String blob, BlobExpiryOp * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2165,7 +2165,7 @@ public Mono> setExpiryNoCustomHeadersWithResponseAsync(String con * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2198,7 +2198,7 @@ public Mono> setExpiryNoCustomHeadersWithResponseAsync(String con * analytics logs when storage analytics logging is enabled. * @param blobHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2270,7 +2270,7 @@ public Mono> setHttpHeadersWithRe * @param blobHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2342,7 +2342,7 @@ public Mono> setHttpHeadersWithRe * analytics logs when storage analytics logging is enabled. * @param blobHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2376,7 +2376,7 @@ public Mono setHttpHeadersAsync(String containerName, String blob, Integer * @param blobHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2409,7 +2409,7 @@ public Mono setHttpHeadersAsync(String containerName, String blob, Integer * analytics logs when storage analytics logging is enabled. * @param blobHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2481,7 +2481,7 @@ public Mono> setHttpHeadersNoCustomHeadersWithResponseAsync(Strin * @param blobHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2548,7 +2548,7 @@ public Mono> setHttpHeadersNoCustomHeadersWithResponseAsync(Strin * @param immutabilityPolicyExpiry Specifies the date time when the blobs immutability policy is set to expire. * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2583,7 +2583,7 @@ public Mono> setImmutabili * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2617,7 +2617,7 @@ public Mono> setImmutabili * @param immutabilityPolicyExpiry Specifies the date time when the blobs immutability policy is set to expire. * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2645,7 +2645,7 @@ public Mono setImmutabilityPolicyAsync(String containerName, String blob, * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2672,7 +2672,7 @@ public Mono setImmutabilityPolicyAsync(String containerName, String blob, * @param immutabilityPolicyExpiry Specifies the date time when the blobs immutability policy is set to expire. * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2707,7 +2707,7 @@ public Mono> setImmutabilityPolicyNoCustomHeadersWithResponseAsyn * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2737,7 +2737,7 @@ public Mono> setImmutabilityPolicyNoCustomHeadersWithResponseAsyn * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2762,7 +2762,7 @@ public Mono> deleteImmu * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2786,7 +2786,7 @@ public Mono> deleteImmu * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2809,7 +2809,7 @@ public Mono deleteImmutabilityPolicyAsync(String containerName, String blo * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2831,7 +2831,7 @@ public Mono deleteImmutabilityPolicyAsync(String containerName, String blo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2856,7 +2856,7 @@ public Mono> deleteImmutabilityPolicyNoCustomHeadersWithResponseA * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2881,7 +2881,7 @@ public Mono> deleteImmutabilityPolicyNoCustomHeadersWithResponseA * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2907,7 +2907,7 @@ public Mono> setLegalHoldWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2932,7 +2932,7 @@ public Mono> setLegalHoldWithRespon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2956,7 +2956,7 @@ public Mono setLegalHoldAsync(String containerName, String blob, boolean l * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2979,7 +2979,7 @@ public Mono setLegalHoldAsync(String containerName, String blob, boolean l * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3005,7 +3005,7 @@ public Mono> setLegalHoldNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3046,7 +3046,7 @@ public Mono> setLegalHoldNoCustomHeadersWithResponseAsync(String * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3116,7 +3116,7 @@ public Mono> setMetadataWithResponse * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3185,7 +3185,7 @@ public Mono> setMetadataWithResponse * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3227,7 +3227,7 @@ public Mono setMetadataAsync(String containerName, String blob, Integer ti * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3269,7 +3269,7 @@ public Mono setMetadataAsync(String containerName, String blob, Integer ti * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3339,7 +3339,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String c * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3404,7 +3404,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3449,7 +3449,7 @@ public Mono> acquireLeaseWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3494,7 +3494,7 @@ public Mono> acquireLeaseWithRespon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3531,7 +3531,7 @@ public Mono acquireLeaseAsync(String containerName, String blob, Integer t * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3567,7 +3567,7 @@ public Mono acquireLeaseAsync(String containerName, String blob, Integer t * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3613,7 +3613,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3653,7 +3653,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3693,7 +3693,7 @@ public Mono> releaseLeaseWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3732,7 +3732,7 @@ public Mono> releaseLeaseWithRespon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3764,7 +3764,7 @@ public Mono releaseLeaseAsync(String containerName, String blob, String le * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3795,7 +3795,7 @@ public Mono releaseLeaseAsync(String containerName, String blob, String le * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3835,7 +3835,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3874,7 +3874,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3914,7 +3914,7 @@ public Mono> renewLeaseWithResponseAs * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3953,7 +3953,7 @@ public Mono> renewLeaseWithResponseAs * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3985,7 +3985,7 @@ public Mono renewLeaseAsync(String containerName, String blob, String leas * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4016,7 +4016,7 @@ public Mono renewLeaseAsync(String containerName, String blob, String leas * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4056,7 +4056,7 @@ public Mono> renewLeaseNoCustomHeadersWithResponseAsync(String co * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4098,7 +4098,7 @@ public Mono> renewLeaseNoCustomHeadersWithResponseAsync(String co * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4141,7 +4141,7 @@ public Mono> changeLeaseWithResponse * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4184,7 +4184,7 @@ public Mono> changeLeaseWithResponse * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4219,7 +4219,7 @@ public Mono changeLeaseAsync(String containerName, String blob, String lea * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4253,7 +4253,7 @@ public Mono changeLeaseAsync(String containerName, String blob, String lea * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4296,7 +4296,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4341,7 +4341,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4386,7 +4386,7 @@ public Mono> breakLeaseWithResponseAs * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4431,7 +4431,7 @@ public Mono> breakLeaseWithResponseAs * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4468,7 +4468,7 @@ public Mono breakLeaseAsync(String containerName, String blob, Integer tim * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4504,7 +4504,7 @@ public Mono breakLeaseAsync(String containerName, String blob, Integer tim * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4549,7 +4549,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String co * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4596,7 +4596,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String co * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4665,7 +4665,7 @@ public Mono> createSnapshotWithRe * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4733,7 +4733,7 @@ public Mono> createSnapshotWithRe * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4775,7 +4775,7 @@ public Mono createSnapshotAsync(String containerName, String blob, Integer * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4816,7 +4816,7 @@ public Mono createSnapshotAsync(String containerName, String blob, Integer * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4885,7 +4885,7 @@ public Mono> createSnapshotNoCustomHeadersWithResponseAsync(Strin * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4968,7 +4968,7 @@ public Mono> createSnapshotNoCustomHeadersWithResponseAsync(Strin * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @param legalHold Specified if a legal hold should be set on the blob. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5042,7 +5042,7 @@ public Mono> startCopyFromURLWi * @param legalHold Specified if a legal hold should be set on the blob. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5115,7 +5115,7 @@ public Mono> startCopyFromURLWi * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @param legalHold Specified if a legal hold should be set on the blob. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5177,7 +5177,7 @@ public Mono startCopyFromURLAsync(String containerName, String blob, Strin * @param legalHold Specified if a legal hold should be set on the blob. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5238,7 +5238,7 @@ public Mono startCopyFromURLAsync(String containerName, String blob, Strin * @param immutabilityPolicyMode Specifies the immutability policy mode to set on the blob. * @param legalHold Specified if a legal hold should be set on the blob. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5312,7 +5312,7 @@ public Mono> startCopyFromURLNoCustomHeadersWithResponseAsync(Str * @param legalHold Specified if a legal hold should be set on the blob. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5389,7 +5389,7 @@ public Mono> startCopyFromURLNoCustomHeadersWithResponseAsync(Str * tags specified by x-ms-tags. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5475,7 +5475,7 @@ public Mono> copyFromURLWithResponse * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5560,7 +5560,7 @@ public Mono> copyFromURLWithResponse * tags specified by x-ms-tags. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5626,7 +5626,7 @@ public Mono copyFromURLAsync(String containerName, String blob, String cop * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5692,7 +5692,7 @@ public Mono copyFromURLAsync(String containerName, String blob, String cop * tags specified by x-ms-tags. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5779,7 +5779,7 @@ public Mono> copyFromURLNoCustomHeadersWithResponseAsync(String c * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5832,7 +5832,7 @@ public Mono> copyFromURLNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5861,7 +5861,7 @@ public Mono> abortCopyFromURLWi * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5890,7 +5890,7 @@ public Mono> abortCopyFromURLWi * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5916,7 +5916,7 @@ public Mono abortCopyFromURLAsync(String containerName, String blob, Strin * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5941,7 +5941,7 @@ public Mono abortCopyFromURLAsync(String containerName, String blob, Strin * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5971,7 +5971,7 @@ public Mono> abortCopyFromURLNoCustomHeadersWithResponseAsync(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6009,7 +6009,7 @@ public Mono> abortCopyFromURLNoCustomHeadersWithResponseAsync(Str * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6049,7 +6049,7 @@ public Mono> setTierWithResponseAsync(St * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6087,7 +6087,7 @@ public Mono> setTierWithResponseAsync(St * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6124,7 +6124,7 @@ public Mono setTierAsync(String containerName, String blob, AccessTier tie * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6160,7 +6160,7 @@ public Mono setTierAsync(String containerName, String blob, AccessTier tie * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6200,7 +6200,7 @@ public Mono> setTierNoCustomHeadersWithResponseAsync(String conta * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6220,7 +6220,7 @@ public Mono> setTierNoCustomHeadersWithResponseAsync(String conta * @param containerName The container name. * @param blob The blob name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6241,7 +6241,7 @@ public Mono> getAccountInfoWithRe * @param blob The blob name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6261,7 +6261,7 @@ public Mono> getAccountInfoWithRe * @param containerName The container name. * @param blob The blob name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6277,7 +6277,7 @@ public Mono getAccountInfoAsync(String containerName, String blob) { * @param blob The blob name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6292,7 +6292,7 @@ public Mono getAccountInfoAsync(String containerName, String blob, Context * @param containerName The container name. * @param blob The blob name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6312,7 +6312,7 @@ public Mono> getAccountInfoNoCustomHeadersWithResponseAsync(Strin * @param blob The blob name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6351,7 +6351,7 @@ public Mono> getAccountInfoNoCustomHeadersWithResponseAsync(Strin * @param queryRequest the query request. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6413,7 +6413,7 @@ public Mono>> queryWithResponse * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6473,7 +6473,7 @@ public Mono>> queryWithResponse * @param queryRequest the query request. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -6512,7 +6512,7 @@ public Flux queryAsync(String containerName, String blob, String sna * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -6551,7 +6551,7 @@ public Flux queryAsync(String containerName, String blob, String sna * @param queryRequest the query request. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -6613,7 +6613,7 @@ public Mono queryNoCustomHeadersWithResponseAsync(String contain * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -6668,7 +6668,7 @@ public Mono queryNoCustomHeadersWithResponseAsync(String contain * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return blob tags along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6701,7 +6701,7 @@ public Mono> getTagsWithResponseAsyn * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return blob tags along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6734,7 +6734,7 @@ public Mono> getTagsWithResponseAsyn * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return blob tags on successful completion of {@link Mono}. */ @@ -6765,7 +6765,7 @@ public Mono getTagsAsync(String containerName, String blob, Integer ti * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return blob tags on successful completion of {@link Mono}. */ @@ -6795,7 +6795,7 @@ public Mono getTagsAsync(String containerName, String blob, Integer ti * @param ifTags Specify a SQL where clause on blob tags to operate only on blobs with a matching value. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return blob tags along with {@link Response} on successful completion of {@link Mono}. */ @@ -6828,7 +6828,7 @@ public Mono> getTagsNoCustomHeadersWithResponseAsync(String c * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return blob tags along with {@link Response} on successful completion of {@link Mono}. */ @@ -6860,7 +6860,7 @@ public Mono> getTagsNoCustomHeadersWithResponseAsync(String c * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param tags Blob tags. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6896,7 +6896,7 @@ public Mono> setTagsWithResponseAsync(St * @param tags Blob tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6931,7 +6931,7 @@ public Mono> setTagsWithResponseAsync(St * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param tags Blob tags. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6962,7 +6962,7 @@ public Mono setTagsAsync(String containerName, String blob, Integer timeou * @param tags Blob tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6992,7 +6992,7 @@ public Mono setTagsAsync(String containerName, String blob, Integer timeou * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param tags Blob tags. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -7028,7 +7028,7 @@ public Mono> setTagsNoCustomHeadersWithResponseAsync(String conta * @param tags Blob tags. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlockBlobsImpl.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlockBlobsImpl.java index 48c0e7370c84..5ae070424204 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlockBlobsImpl.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlockBlobsImpl.java @@ -25,6 +25,7 @@ import com.azure.core.util.Context; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.BlockBlobsCommitBlockListHeaders; import com.azure.storage.blob.implementation.models.BlockBlobsGetBlockListHeaders; import com.azure.storage.blob.implementation.models.BlockBlobsPutBlobFromUrlHeaders; @@ -36,7 +37,6 @@ import com.azure.storage.blob.models.BlobCopySourceTagsMode; import com.azure.storage.blob.models.BlobHttpHeaders; import com.azure.storage.blob.models.BlobImmutabilityPolicyMode; -import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.BlockList; import com.azure.storage.blob.models.BlockListType; import com.azure.storage.blob.models.BlockLookupList; @@ -82,7 +82,7 @@ public final class BlockBlobsImpl { public interface BlockBlobsService { @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> upload(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -114,7 +114,7 @@ Mono> upload(@HostParam("url") Strin @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -146,7 +146,7 @@ Mono> uploadNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> upload(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -178,7 +178,7 @@ Mono> upload(@HostParam("url") Strin @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -210,7 +210,7 @@ Mono> uploadNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> putBlobFromUrl(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -247,7 +247,7 @@ Mono> putBlobFromUrl(@HostPa @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> putBlobFromUrlNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -284,7 +284,7 @@ Mono> putBlobFromUrlNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> stageBlock(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("blockid") String blockId, @@ -301,7 +301,7 @@ Mono> stageBlock(@HostParam("url @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> stageBlockNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("blockid") String blockId, @@ -318,7 +318,7 @@ Mono> stageBlockNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> stageBlock(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("blockid") String blockId, @@ -335,7 +335,7 @@ Mono> stageBlock(@HostParam("url @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> stageBlockNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("blockid") String blockId, @@ -352,7 +352,7 @@ Mono> stageBlockNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> stageBlockFromURL(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("blockid") String blockId, @@ -374,7 +374,7 @@ Mono> stageBlockFromURL(@ @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> stageBlockFromURLNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("blockid") String blockId, @@ -396,7 +396,7 @@ Mono> stageBlockFromURLNoCustomHeaders(@HostParam("url") String u @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> commitBlockList(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -426,7 +426,7 @@ Mono> commitBlockList(@Host @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> commitBlockListNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -456,7 +456,7 @@ Mono> commitBlockListNoCustomHeaders(@HostParam("url") String url @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getBlockList(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -467,7 +467,7 @@ Mono> getBlockList(@HostP @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getBlockListNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -517,7 +517,7 @@ Mono> getBlockListNoCustomHeaders(@HostParam("url") String u * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -640,7 +640,7 @@ public Mono> uploadWithResponseAsync * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -762,7 +762,7 @@ public Mono> uploadWithResponseAsync * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -820,7 +820,7 @@ public Mono uploadAsync(String containerName, String blob, long contentLen * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -877,7 +877,7 @@ public Mono uploadAsync(String containerName, String blob, long contentLen * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1000,7 +1000,7 @@ public Mono> uploadNoCustomHeadersWithResponseAsync(String contai * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1122,7 +1122,7 @@ public Mono> uploadNoCustomHeadersWithResponseAsync(String contai * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1245,7 +1245,7 @@ public Mono> uploadWithResponseAsync * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1367,7 +1367,7 @@ public Mono> uploadWithResponseAsync * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1425,7 +1425,7 @@ public Mono uploadAsync(String containerName, String blob, long contentLen * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1482,7 +1482,7 @@ public Mono uploadAsync(String containerName, String blob, long contentLen * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1605,7 +1605,7 @@ public Mono> uploadNoCustomHeadersWithResponseAsync(String contai * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1740,7 +1740,7 @@ public Mono> uploadNoCustomHeadersWithResponseAsync(String contai * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1881,7 +1881,7 @@ public Mono> putBlobFromUrlW * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2021,7 +2021,7 @@ public Mono> putBlobFromUrlW * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2095,7 +2095,7 @@ public Mono putBlobFromUrlAsync(String containerName, String blob, long co * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2168,7 +2168,7 @@ public Mono putBlobFromUrlAsync(String containerName, String blob, long co * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2308,7 +2308,7 @@ public Mono> putBlobFromUrlNoCustomHeadersWithResponseAsync(Strin * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2415,7 +2415,7 @@ public Mono> putBlobFromUrlNoCustomHeadersWithResponseAsync(Strin * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2476,7 +2476,7 @@ public Mono> stageBlockWithRespo * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2536,7 +2536,7 @@ public Mono> stageBlockWithRespo * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2571,7 +2571,7 @@ public Mono stageBlockAsync(String containerName, String blob, String bloc * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2605,7 +2605,7 @@ public Mono stageBlockAsync(String containerName, String blob, String bloc * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2666,7 +2666,7 @@ public Mono> stageBlockNoCustomHeadersWithResponseAsync(String co * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2726,7 +2726,7 @@ public Mono> stageBlockNoCustomHeadersWithResponseAsync(String co * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2787,7 +2787,7 @@ public Mono> stageBlockWithRespo * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2847,7 +2847,7 @@ public Mono> stageBlockWithRespo * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2882,7 +2882,7 @@ public Mono stageBlockAsync(String containerName, String blob, String bloc * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2916,7 +2916,7 @@ public Mono stageBlockAsync(String containerName, String blob, String bloc * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2977,7 +2977,7 @@ public Mono> stageBlockNoCustomHeadersWithResponseAsync(String co * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3048,7 +3048,7 @@ public Mono> stageBlockNoCustomHeadersWithResponseAsync(String co * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3127,7 +3127,7 @@ public Mono> stageBlockFr * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3205,7 +3205,7 @@ public Mono> stageBlockFr * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3254,7 +3254,7 @@ public Mono stageBlockFromURLAsync(String containerName, String blob, Stri * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3302,7 +3302,7 @@ public Mono stageBlockFromURLAsync(String containerName, String blob, Stri * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3380,7 +3380,7 @@ public Mono> stageBlockFromURLNoCustomHeadersWithResponseAsync(St * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3466,7 +3466,7 @@ public Mono> stageBlockFromURLNoCustomHeadersWithResponseAsync(St * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3590,7 +3590,7 @@ public Mono> commitBlockLis * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3713,7 +3713,7 @@ public Mono> commitBlockLis * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3772,7 +3772,7 @@ public Mono commitBlockListAsync(String containerName, String blob, BlockL * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3830,7 +3830,7 @@ public Mono commitBlockListAsync(String containerName, String blob, BlockL * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3954,7 +3954,7 @@ public Mono> commitBlockListNoCustomHeadersWithResponseAsync(Stri * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4055,7 +4055,7 @@ public Mono> commitBlockListNoCustomHeadersWithResponseAsync(Stri * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4089,7 +4089,7 @@ public Mono> getBlockList * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4122,7 +4122,7 @@ public Mono> getBlockList * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -4153,7 +4153,7 @@ public Mono getBlockListAsync(String containerName, String blob, Bloc * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -4183,7 +4183,7 @@ public Mono getBlockListAsync(String containerName, String blob, Bloc * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -4217,7 +4217,7 @@ public Mono> getBlockListNoCustomHeadersWithResponseAsync(St * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ContainersImpl.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ContainersImpl.java index 3788e30cc734..804f32d8a8b9 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ContainersImpl.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ContainersImpl.java @@ -28,6 +28,7 @@ import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; import com.azure.storage.blob.implementation.models.BlobSignedIdentifierWrapper; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.ContainersAcquireLeaseHeaders; import com.azure.storage.blob.implementation.models.ContainersBreakLeaseHeaders; import com.azure.storage.blob.implementation.models.ContainersChangeLeaseHeaders; @@ -52,7 +53,6 @@ import com.azure.storage.blob.implementation.models.ListBlobsHierarchySegmentResponse; import com.azure.storage.blob.models.BlobContainerEncryptionScope; import com.azure.storage.blob.models.BlobSignedIdentifier; -import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.ListBlobsIncludeItem; import com.azure.storage.blob.models.PublicAccessType; import java.nio.ByteBuffer; @@ -98,7 +98,7 @@ public final class ContainersImpl { public interface ContainersService { @Put("/{containerName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -110,7 +110,7 @@ Mono> create(@HostParam("url") Strin @Put("/{containerName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -122,7 +122,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-lease-id") String leaseId, @@ -131,7 +131,7 @@ Mono> getProperties(@HostPara @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-lease-id") String leaseId, @@ -140,7 +140,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Delete("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-lease-id") String leaseId, @@ -151,7 +151,7 @@ Mono> delete(@HostParam("url") Strin @Delete("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-lease-id") String leaseId, @@ -162,7 +162,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setMetadata(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -173,7 +173,7 @@ Mono> setMetadata(@HostParam("u @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -184,7 +184,7 @@ Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccessPolicy( @HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -194,7 +194,7 @@ Mono @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccessPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -204,7 +204,7 @@ Mono> getAccessPolicyNoCustomHeaders(@Host @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setAccessPolicy(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -218,7 +218,7 @@ Mono> setAccessPolicy(@Host @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setAccessPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -232,7 +232,7 @@ Mono> setAccessPolicyNoCustomHeaders(@HostParam("url") String url @Put("/{containerName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> restore(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -243,7 +243,7 @@ Mono> restore(@HostParam("url") Str @Put("/{containerName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> restoreNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -254,7 +254,7 @@ Mono> restoreNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> rename(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -265,7 +265,7 @@ Mono> rename(@HostParam("url") Strin @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> renameNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -276,7 +276,7 @@ Mono> renameNoCustomHeaders(@HostParam("url") String url, @Post("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono>> submitBatch(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @@ -286,7 +286,7 @@ Mono>> submitBatch(@ @Post("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @@ -296,7 +296,7 @@ Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @Post("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono>> submitBatch(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @@ -306,7 +306,7 @@ Mono>> submitBatch(@ @Post("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @@ -316,7 +316,7 @@ Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> filterBlobs(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -327,7 +327,7 @@ Mono> filterBlobs( @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> filterBlobsNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -338,7 +338,7 @@ Mono> filterBlobsNoCustomHeaders(@HostParam("url") S @Put("/{containerName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> acquireLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -351,7 +351,7 @@ Mono> acquireLease(@HostParam( @Put("/{containerName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -364,7 +364,7 @@ Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> releaseLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -376,7 +376,7 @@ Mono> releaseLease(@HostParam( @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -388,7 +388,7 @@ Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> renewLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -400,7 +400,7 @@ Mono> renewLease(@HostParam("url @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> renewLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -412,7 +412,7 @@ Mono> renewLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> breakLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -424,7 +424,7 @@ Mono> breakLease(@HostParam("url @Put("/{containerName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -436,7 +436,7 @@ Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> changeLease(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -449,7 +449,7 @@ Mono> changeLease(@HostParam("u @Put("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("comp") String comp, @QueryParam("restype") String restype, @HeaderParam("x-ms-lease-action") String action, @@ -462,7 +462,7 @@ Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> listBlobFlatSegment( @HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @@ -473,7 +473,7 @@ Mono> listBlobFlatSegmentNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @@ -484,7 +484,7 @@ Mono> listBlobFlatSegmentNoCustomHeaders( @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> listBlobHierarchySegment(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -496,7 +496,7 @@ Mono> listBlobFlatSegmentNoCustomHeaders( @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> listBlobHierarchySegmentNoCustomHeaders( @HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @@ -508,7 +508,7 @@ Mono> listBlobHierarchySegmentNoCust @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccountInfo(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-version") String version, @@ -516,7 +516,7 @@ Mono> getAccountInfo(@HostPa @Get("/{containerName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccountInfoNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-version") String version, @@ -542,7 +542,7 @@ Mono> getAccountInfoNoCustomHeaders(@HostParam("url") String url, * analytics logs when storage analytics logging is enabled. * @param blobContainerEncryptionScope Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -588,7 +588,7 @@ public Mono> createWithResponseAsync * @param blobContainerEncryptionScope Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -633,7 +633,7 @@ public Mono> createWithResponseAsync * analytics logs when storage analytics logging is enabled. * @param blobContainerEncryptionScope Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -664,7 +664,7 @@ public Mono createAsync(String containerName, Integer timeout, Map createAsync(String containerName, Integer timeout, Map> createNoCustomHeadersWithResponseAsync(String contai * @param blobContainerEncryptionScope Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -779,7 +779,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String contai * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -805,7 +805,7 @@ public Mono> getPropertiesWit * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -830,7 +830,7 @@ public Mono> getPropertiesWit * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -853,7 +853,7 @@ public Mono getPropertiesAsync(String containerName, Integer timeout, Stri * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -876,7 +876,7 @@ public Mono getPropertiesAsync(String containerName, Integer timeout, Stri * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -902,7 +902,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -931,7 +931,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -967,7 +967,7 @@ public Mono> deleteWithResponseAsync * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1001,7 +1001,7 @@ public Mono> deleteWithResponseAsync * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1029,7 +1029,7 @@ public Mono deleteAsync(String containerName, Integer timeout, String leas * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1056,7 +1056,7 @@ public Mono deleteAsync(String containerName, Integer timeout, String leas * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1091,7 +1091,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String contai * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1128,7 +1128,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String contai * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1166,7 +1166,7 @@ public Mono> setMetadataWithRes * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1202,7 +1202,7 @@ public Mono> setMetadataWithRes * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1233,7 +1233,7 @@ public Mono setMetadataAsync(String containerName, Integer timeout, String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1263,7 +1263,7 @@ public Mono setMetadataAsync(String containerName, Integer timeout, String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1300,7 +1300,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1329,7 +1329,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the permissions for the specified container along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -1357,7 +1357,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the permissions for the specified container along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -1385,7 +1385,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the permissions for the specified container on successful completion of {@link Mono}. */ @@ -1409,7 +1409,7 @@ public Mono getAccessPolicyAsync(String containerNa * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the permissions for the specified container on successful completion of {@link Mono}. */ @@ -1432,7 +1432,7 @@ public Mono getAccessPolicyAsync(String containerNa * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the permissions for the specified container along with {@link Response} on successful completion of * {@link Mono}. @@ -1460,7 +1460,7 @@ public Mono> getAccessPolicyNoCustomHeader * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the permissions for the specified container along with {@link Response} on successful completion of * {@link Mono}. @@ -1493,7 +1493,7 @@ public Mono> getAccessPolicyNoCustomHeader * analytics logs when storage analytics logging is enabled. * @param containerAcl the acls for the container. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1533,7 +1533,7 @@ public Mono> setAccessPolic * @param containerAcl the acls for the container. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1572,7 +1572,7 @@ public Mono> setAccessPolic * analytics logs when storage analytics logging is enabled. * @param containerAcl the acls for the container. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1603,7 +1603,7 @@ public Mono setAccessPolicyAsync(String containerName, Integer timeout, St * @param containerAcl the acls for the container. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1633,7 +1633,7 @@ public Mono setAccessPolicyAsync(String containerName, Integer timeout, St * analytics logs when storage analytics logging is enabled. * @param containerAcl the acls for the container. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1673,7 +1673,7 @@ public Mono> setAccessPolicyNoCustomHeadersWithResponseAsync(Stri * @param containerAcl the acls for the container. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1708,7 +1708,7 @@ public Mono> setAccessPolicyNoCustomHeadersWithResponseAsync(Stri * @param deletedContainerVersion Optional. Version 2019-12-12 and later. Specifies the version of the deleted * container to restore. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1738,7 +1738,7 @@ public Mono> restoreWithResponseAsy * container to restore. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1767,7 +1767,7 @@ public Mono> restoreWithResponseAsy * @param deletedContainerVersion Optional. Version 2019-12-12 and later. Specifies the version of the deleted * container to restore. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1793,7 +1793,7 @@ public Mono restoreAsync(String containerName, Integer timeout, String req * container to restore. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1818,7 +1818,7 @@ public Mono restoreAsync(String containerName, Integer timeout, String req * @param deletedContainerVersion Optional. Version 2019-12-12 and later. Specifies the version of the deleted * container to restore. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1848,7 +1848,7 @@ public Mono> restoreNoCustomHeadersWithResponseAsync(String conta * container to restore. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1875,7 +1875,7 @@ public Mono> restoreNoCustomHeadersWithResponseAsync(String conta * @param sourceLeaseId A lease ID for the source path. If specified, the source path must have an active lease and * the lease ID must match. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1903,7 +1903,7 @@ public Mono> renameWithResponseAsync * the lease ID must match. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1930,7 +1930,7 @@ public Mono> renameWithResponseAsync * @param sourceLeaseId A lease ID for the source path. If specified, the source path must have an active lease and * the lease ID must match. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1955,7 +1955,7 @@ public Mono renameAsync(String containerName, String sourceContainerName, * the lease ID must match. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1979,7 +1979,7 @@ public Mono renameAsync(String containerName, String sourceContainerName, * @param sourceLeaseId A lease ID for the source path. If specified, the source path must have an active lease and * the lease ID must match. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2008,7 +2008,7 @@ public Mono> renameNoCustomHeadersWithResponseAsync(String contai * the lease ID must match. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2036,7 +2036,7 @@ public Mono> renameNoCustomHeadersWithResponseAsync(String contai * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2066,7 +2066,7 @@ public Mono>> submit * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2095,7 +2095,7 @@ public Mono>> submit * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -2121,7 +2121,7 @@ public Flux submitBatchAsync(String containerName, long contentLengt * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -2146,7 +2146,7 @@ public Flux submitBatchAsync(String containerName, long contentLengt * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -2176,7 +2176,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -2204,7 +2204,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2234,7 +2234,7 @@ public Mono>> submit * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2263,7 +2263,7 @@ public Mono>> submit * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -2289,7 +2289,7 @@ public Flux submitBatchAsync(String containerName, long contentLengt * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -2314,7 +2314,7 @@ public Flux submitBatchAsync(String containerName, long contentLengt * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -2344,7 +2344,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -2381,7 +2381,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(String c * specified by maxresults, or than the default of 5000. * @param include Include this parameter to specify one or more datasets to include in the response. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -2427,7 +2427,7 @@ public Mono> filte * @param include Include this parameter to specify one or more datasets to include in the response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -2471,7 +2471,7 @@ public Mono> filte * specified by maxresults, or than the default of 5000. * @param include Include this parameter to specify one or more datasets to include in the response. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call on successful completion of {@link Mono}. */ @@ -2506,7 +2506,7 @@ public Mono filterBlobsAsync(String containerName, Integer ti * @param include Include this parameter to specify one or more datasets to include in the response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call on successful completion of {@link Mono}. */ @@ -2540,7 +2540,7 @@ public Mono filterBlobsAsync(String containerName, Integer ti * specified by maxresults, or than the default of 5000. * @param include Include this parameter to specify one or more datasets to include in the response. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link Response} on successful completion of * {@link Mono}. @@ -2586,7 +2586,7 @@ public Mono> filterBlobsNoCustomHeadersWithResponseA * @param include Include this parameter to specify one or more datasets to include in the response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link Response} on successful completion of * {@link Mono}. @@ -2628,7 +2628,7 @@ public Mono> filterBlobsNoCustomHeadersWithResponseA * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2671,7 +2671,7 @@ public Mono> acquireLeaseWithR * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2713,7 +2713,7 @@ public Mono> acquireLeaseWithR * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2746,7 +2746,7 @@ public Mono acquireLeaseAsync(String containerName, Integer timeout, Integ * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2778,7 +2778,7 @@ public Mono acquireLeaseAsync(String containerName, Integer timeout, Integ * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2821,7 +2821,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2858,7 +2858,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2896,7 +2896,7 @@ public Mono> releaseLeaseWithR * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2932,7 +2932,7 @@ public Mono> releaseLeaseWithR * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2960,7 +2960,7 @@ public Mono releaseLeaseAsync(String containerName, String leaseId, Intege * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2987,7 +2987,7 @@ public Mono releaseLeaseAsync(String containerName, String leaseId, Intege * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3024,7 +3024,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3061,7 +3061,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3099,7 +3099,7 @@ public Mono> renewLeaseWithRespo * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3135,7 +3135,7 @@ public Mono> renewLeaseWithRespo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3163,7 +3163,7 @@ public Mono renewLeaseAsync(String containerName, String leaseId, Integer * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3190,7 +3190,7 @@ public Mono renewLeaseAsync(String containerName, String leaseId, Integer * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3227,7 +3227,7 @@ public Mono> renewLeaseNoCustomHeadersWithResponseAsync(String co * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3269,7 +3269,7 @@ public Mono> renewLeaseNoCustomHeadersWithResponseAsync(String co * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3312,7 +3312,7 @@ public Mono> breakLeaseWithRespo * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3353,7 +3353,7 @@ public Mono> breakLeaseWithRespo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3386,7 +3386,7 @@ public Mono breakLeaseAsync(String containerName, Integer timeout, Integer * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3418,7 +3418,7 @@ public Mono breakLeaseAsync(String containerName, Integer timeout, Integer * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3460,7 +3460,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String co * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3500,7 +3500,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String co * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3541,7 +3541,7 @@ public Mono> changeLeaseWithRes * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3581,7 +3581,7 @@ public Mono> changeLeaseWithRes * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3612,7 +3612,7 @@ public Mono changeLeaseAsync(String containerName, String leaseId, String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3642,7 +3642,7 @@ public Mono changeLeaseAsync(String containerName, String leaseId, String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3683,7 +3683,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3726,7 +3726,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3770,7 +3770,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String c * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3812,7 +3812,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String c * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs on successful completion of {@link Mono}. */ @@ -3846,7 +3846,7 @@ public Mono listBlobFlatSegmentAsync(String contai * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs on successful completion of {@link Mono}. */ @@ -3880,7 +3880,7 @@ public Mono listBlobFlatSegmentAsync(String contai * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response} on successful completion of {@link Mono}. */ @@ -3924,7 +3924,7 @@ public Mono> listBlobFlatSegmentNoCustomH * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response} on successful completion of {@link Mono}. */ @@ -3969,7 +3969,7 @@ public Mono> listBlobFlatSegmentNoCustomH * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4016,7 +4016,7 @@ public Mono> listBlobFlatSegmentNoCustomH * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4062,7 +4062,7 @@ public Mono> listBlobFlatSegmentNoCustomH * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs on successful completion of {@link Mono}. */ @@ -4100,7 +4100,7 @@ public Mono listBlobHierarchySegmentAsync(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs on successful completion of {@link Mono}. */ @@ -4137,7 +4137,7 @@ public Mono listBlobHierarchySegmentAsync(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response} on successful completion of {@link Mono}. */ @@ -4184,7 +4184,7 @@ public Mono> listBlobHierarchySegmen * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response} on successful completion of {@link Mono}. */ @@ -4210,7 +4210,7 @@ public Mono> listBlobHierarchySegmen * * @param containerName The container name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4230,7 +4230,7 @@ public Mono> listBlobHierarchySegmen * @param containerName The container name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4249,7 +4249,7 @@ public Mono> listBlobHierarchySegmen * * @param containerName The container name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4264,7 +4264,7 @@ public Mono getAccountInfoAsync(String containerName) { * @param containerName The container name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4278,7 +4278,7 @@ public Mono getAccountInfoAsync(String containerName, Context context) { * * @param containerName The container name. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4297,7 +4297,7 @@ public Mono> getAccountInfoNoCustomHeadersWithResponseAsync(Strin * @param containerName The container name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/PageBlobsImpl.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/PageBlobsImpl.java index e8ca56948e83..5ffa8ef77ca6 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/PageBlobsImpl.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/PageBlobsImpl.java @@ -25,6 +25,7 @@ import com.azure.core.util.Context; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.EncryptionScope; import com.azure.storage.blob.implementation.models.PageBlobsClearPagesHeaders; import com.azure.storage.blob.implementation.models.PageBlobsCopyIncrementalHeaders; @@ -38,7 +39,6 @@ import com.azure.storage.blob.implementation.models.PremiumPageBlobAccessTier; import com.azure.storage.blob.models.BlobHttpHeaders; import com.azure.storage.blob.models.BlobImmutabilityPolicyMode; -import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.CpkInfo; import com.azure.storage.blob.models.EncryptionAlgorithmType; import com.azure.storage.blob.models.PageList; @@ -83,7 +83,7 @@ public final class PageBlobsImpl { public interface PageBlobsService { @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -113,7 +113,7 @@ Mono> create(@HostParam("url") String @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @HeaderParam("x-ms-blob-type") String blobType, @QueryParam("timeout") Integer timeout, @@ -143,7 +143,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadPages(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -168,7 +168,7 @@ Mono> uploadPages(@HostParam("ur @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadPagesNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -193,7 +193,7 @@ Mono> uploadPagesNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadPages(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -218,7 +218,7 @@ Mono> uploadPages(@HostParam("ur @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadPagesNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -243,7 +243,7 @@ Mono> uploadPagesNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> clearPages(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -265,7 +265,7 @@ Mono> clearPages(@HostParam("url" @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> clearPagesNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -287,7 +287,7 @@ Mono> clearPagesNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadPagesFromURL(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -316,7 +316,7 @@ Mono> uploadPagesFromURL( @Put("/{containerName}/{blob}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> uploadPagesFromURLNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @HeaderParam("x-ms-page-write") String pageWrite, @@ -345,7 +345,7 @@ Mono> uploadPagesFromURLNoCustomHeaders(@HostParam("url") String @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPageRanges(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -360,7 +360,7 @@ Mono> getPageRanges(@HostP @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPageRangesNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -375,7 +375,7 @@ Mono> getPageRangesNoCustomHeaders(@HostParam("url") String u @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPageRangesDiff(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -391,7 +391,7 @@ Mono> getPageRangesDif @Get("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPageRangesDiffNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("snapshot") String snapshot, @@ -407,7 +407,7 @@ Mono> getPageRangesDiffNoCustomHeaders(@HostParam("url") Stri @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> resize(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -424,7 +424,7 @@ Mono> resize(@HostParam("url") String @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> resizeNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -441,7 +441,7 @@ Mono> resizeNoCustomHeaders(@HostParam("url") String url, @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> updateSequenceNumber( @HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -457,7 +457,7 @@ Mono> updateSequenceNum @Put("/{containerName}/{blob}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> updateSequenceNumberNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -473,7 +473,7 @@ Mono> updateSequenceNumberNoCustomHeaders(@HostParam("url") Strin @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> copyIncremental(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -486,7 +486,7 @@ Mono> copyIncremental(@HostP @Put("/{containerName}/{blob}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> copyIncrementalNoCustomHeaders(@HostParam("url") String url, @PathParam("containerName") String containerName, @PathParam("blob") String blob, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -536,7 +536,7 @@ Mono> copyIncrementalNoCustomHeaders(@HostParam("url") String url * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -654,7 +654,7 @@ public Mono> createWithResponseAsync( * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -771,7 +771,7 @@ public Mono> createWithResponseAsync( * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -827,7 +827,7 @@ public Mono createAsync(String containerName, String blob, long contentLen * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -882,7 +882,7 @@ public Mono createAsync(String containerName, String blob, long contentLen * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1000,7 +1000,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String contai * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1111,7 +1111,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String contai * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1192,7 +1192,7 @@ public Mono> uploadPagesWithResp * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1271,7 +1271,7 @@ public Mono> uploadPagesWithResp * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1320,7 +1320,7 @@ public Mono uploadPagesAsync(String containerName, String blob, long conte * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1368,7 +1368,7 @@ public Mono uploadPagesAsync(String containerName, String blob, long conte * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1449,7 +1449,7 @@ public Mono> uploadPagesNoCustomHeadersWithResponseAsync(String c * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1529,7 +1529,7 @@ public Mono> uploadPagesNoCustomHeadersWithResponseAsync(String c * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1610,7 +1610,7 @@ public Mono> uploadPagesWithResp * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1689,7 +1689,7 @@ public Mono> uploadPagesWithResp * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1738,7 +1738,7 @@ public Mono uploadPagesAsync(String containerName, String blob, long conte * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1786,7 +1786,7 @@ public Mono uploadPagesAsync(String containerName, String blob, long conte * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1867,7 +1867,7 @@ public Mono> uploadPagesNoCustomHeadersWithResponseAsync(String c * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1944,7 +1944,7 @@ public Mono> uploadPagesNoCustomHeadersWithResponseAsync(String c * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2018,7 +2018,7 @@ public Mono> clearPagesWithRespon * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2091,7 +2091,7 @@ public Mono> clearPagesWithRespon * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2136,7 +2136,7 @@ public Mono clearPagesAsync(String containerName, String blob, long conten * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2181,7 +2181,7 @@ public Mono clearPagesAsync(String containerName, String blob, long conten * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2255,7 +2255,7 @@ public Mono> clearPagesNoCustomHeadersWithResponseAsync(String co * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2343,7 +2343,7 @@ public Mono> clearPagesNoCustomHeadersWithResponseAsync(String co * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2443,7 +2443,7 @@ public Mono> uploadPagesF * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2542,7 +2542,7 @@ public Mono> uploadPagesF * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2606,7 +2606,7 @@ public Mono uploadPagesFromURLAsync(String containerName, String blob, Str * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2669,7 +2669,7 @@ public Mono uploadPagesFromURLAsync(String containerName, String blob, Str * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2769,7 +2769,7 @@ public Mono> uploadPagesFromURLNoCustomHeadersWithResponseAsync(S * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2859,7 +2859,7 @@ public Mono> uploadPagesFromURLNoCustomHeadersWithResponseAsync(S * the remainder of the results. For this reason, it is possible that the service will return fewer results than * specified by maxresults, or than the default of 5000. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2915,7 +2915,7 @@ public Mono> getPageRanges * specified by maxresults, or than the default of 5000. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2970,7 +2970,7 @@ public Mono> getPageRanges * the remainder of the results. For this reason, it is possible that the service will return fewer results than * specified by maxresults, or than the default of 5000. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages on successful completion of {@link Mono}. */ @@ -3019,7 +3019,7 @@ public Mono getPageRangesAsync(String containerName, String blob, Stri * specified by maxresults, or than the default of 5000. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages on successful completion of {@link Mono}. */ @@ -3067,7 +3067,7 @@ public Mono getPageRangesAsync(String containerName, String blob, Stri * the remainder of the results. For this reason, it is possible that the service will return fewer results than * specified by maxresults, or than the default of 5000. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link Response} on successful completion of {@link Mono}. */ @@ -3123,7 +3123,7 @@ public Mono> getPageRangesNoCustomHeadersWithResponseAsync(St * specified by maxresults, or than the default of 5000. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link Response} on successful completion of {@link Mono}. */ @@ -3186,7 +3186,7 @@ public Mono> getPageRangesNoCustomHeadersWithResponseAsync(St * the remainder of the results. For this reason, it is possible that the service will return fewer results than * specified by maxresults, or than the default of 5000. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3252,7 +3252,7 @@ public Mono> getPageRa * specified by maxresults, or than the default of 5000. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3316,7 +3316,7 @@ public Mono> getPageRa * the remainder of the results. For this reason, it is possible that the service will return fewer results than * specified by maxresults, or than the default of 5000. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages on successful completion of {@link Mono}. */ @@ -3374,7 +3374,7 @@ public Mono getPageRangesDiffAsync(String containerName, String blob, * specified by maxresults, or than the default of 5000. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages on successful completion of {@link Mono}. */ @@ -3431,7 +3431,7 @@ public Mono getPageRangesDiffAsync(String containerName, String blob, * the remainder of the results. For this reason, it is possible that the service will return fewer results than * specified by maxresults, or than the default of 5000. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link Response} on successful completion of {@link Mono}. */ @@ -3496,7 +3496,7 @@ public Mono> getPageRangesDiffNoCustomHeadersWithResponseAsyn * specified by maxresults, or than the default of 5000. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of pages along with {@link Response} on successful completion of {@link Mono}. */ @@ -3540,7 +3540,7 @@ public Mono> getPageRangesDiffNoCustomHeadersWithResponseAsyn * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3605,7 +3605,7 @@ public Mono> resizeWithResponseAsync( * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3669,7 +3669,7 @@ public Mono> resizeWithResponseAsync( * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3706,7 +3706,7 @@ public Mono resizeAsync(String containerName, String blob, long blobConten * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3743,7 +3743,7 @@ public Mono resizeAsync(String containerName, String blob, long blobConten * @param cpkInfo Parameter group. * @param encryptionScopeParam Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3808,7 +3808,7 @@ public Mono> resizeNoCustomHeadersWithResponseAsync(String contai * @param encryptionScopeParam Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3873,7 +3873,7 @@ public Mono> resizeNoCustomHeadersWithResponseAsync(String contai * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3918,7 +3918,7 @@ public Mono> updateSequ * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3962,7 +3962,7 @@ public Mono> updateSequ * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4001,7 +4001,7 @@ public Mono updateSequenceNumberAsync(String containerName, String blob, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4039,7 +4039,7 @@ public Mono updateSequenceNumberAsync(String containerName, String blob, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4085,7 +4085,7 @@ public Mono> updateSequenceNumberNoCustomHeadersWithResponseAsync * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4129,7 +4129,7 @@ public Mono> updateSequenceNumberNoCustomHeadersWithResponseAsync * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4173,7 +4173,7 @@ public Mono> copyIncremental * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4217,7 +4217,7 @@ public Mono> copyIncremental * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4254,7 +4254,7 @@ public Mono copyIncrementalAsync(String containerName, String blob, String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4290,7 +4290,7 @@ public Mono copyIncrementalAsync(String containerName, String blob, String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4334,7 +4334,7 @@ public Mono> copyIncrementalNoCustomHeadersWithResponseAsync(Stri * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ServicesImpl.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ServicesImpl.java index f97442ea64a9..470a7da71b0a 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ServicesImpl.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ServicesImpl.java @@ -29,6 +29,7 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.storage.blob.implementation.models.BlobContainersSegment; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.FilterBlobSegment; import com.azure.storage.blob.implementation.models.FilterBlobsIncludeItem; import com.azure.storage.blob.implementation.models.ServicesFilterBlobsHeaders; @@ -43,7 +44,6 @@ import com.azure.storage.blob.models.BlobContainerItem; import com.azure.storage.blob.models.BlobServiceProperties; import com.azure.storage.blob.models.BlobServiceStatistics; -import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.KeyInfo; import com.azure.storage.blob.models.ListBlobContainersIncludeType; import com.azure.storage.blob.models.UserDelegationKey; @@ -87,7 +87,7 @@ public final class ServicesImpl { public interface ServicesService { @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setProperties(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -97,7 +97,7 @@ Mono> setProperties(@HostParam( @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -107,7 +107,7 @@ Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getProperties( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -116,7 +116,7 @@ Mono> getPrope @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -125,7 +125,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("u @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getStatistics( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -134,7 +134,7 @@ Mono> getStati @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getStatisticsNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -143,7 +143,7 @@ Mono> getStatisticsNoCustomHeaders(@HostParam("u @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> listBlobContainersSegment( @HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @@ -153,7 +153,7 @@ Mono> listBlobContainersSegmentNoCustomHeaders(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @QueryParam("include") String listBlobContainersIncludeType, @@ -163,7 +163,7 @@ Mono> listBlobContainersSegmentNoCustomHeaders(@ @Post("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getUserDelegationKey( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -172,7 +172,7 @@ Mono> getUs @Post("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getUserDelegationKeyNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -181,21 +181,21 @@ Mono> getUserDelegationKeyNoCustomHeaders(@HostParam @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccountInfo(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-version") String version, @HeaderParam("Accept") String accept, Context context); @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> getAccountInfoNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-version") String version, @HeaderParam("Accept") String accept, Context context); @Post("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono>> submitBatch(@HostParam("url") String url, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @HeaderParam("Content-Type") String multipartContentType, @QueryParam("timeout") Integer timeout, @@ -204,7 +204,7 @@ Mono>> submitBatch(@Ho @Post("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @HeaderParam("Content-Type") String multipartContentType, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -213,7 +213,7 @@ Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @Q @Post("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono>> submitBatch(@HostParam("url") String url, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @HeaderParam("Content-Type") String multipartContentType, @QueryParam("timeout") Integer timeout, @@ -222,7 +222,7 @@ Mono>> submitBatch(@Ho @Post("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @QueryParam("comp") String comp, @HeaderParam("Content-Length") long contentLength, @HeaderParam("Content-Type") String multipartContentType, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -231,7 +231,7 @@ Mono submitBatchNoCustomHeaders(@HostParam("url") String url, @Q @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> filterBlobs(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -241,7 +241,7 @@ Mono> filterBlobs(@H @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> filterBlobsNoCustomHeaders(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -251,7 +251,7 @@ Mono> filterBlobsNoCustomHeaders(@HostParam("url") S @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> listBlobContainersSegmentNext(@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @@ -260,7 +260,7 @@ Mono> filterBlobsNoCustomHeaders(@HostParam("url") S @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(BlobStorageException.class) + @UnexpectedResponseExceptionType(BlobStorageExceptionInternal.class) Mono> listBlobContainersSegmentNextNoCustomHeaders( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -278,7 +278,7 @@ Mono> listBlobContainersSegmentNextNoCustomHeade * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -304,7 +304,7 @@ Mono> listBlobContainersSegmentNextNoCustomHeade * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -329,7 +329,7 @@ public Mono> setPropertiesWithR * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -352,7 +352,7 @@ public Mono setPropertiesAsync(BlobServiceProperties blobServiceProperties * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -374,7 +374,7 @@ public Mono setPropertiesAsync(BlobServiceProperties blobServiceProperties * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -400,7 +400,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -424,7 +424,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link ResponseBase} on successful completion of {@link Mono}. @@ -450,7 +450,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link ResponseBase} on successful completion of {@link Mono}. @@ -475,7 +475,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules on successful completion of {@link Mono}. @@ -496,7 +496,7 @@ public Mono getPropertiesAsync(Integer timeout, String re * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules on successful completion of {@link Mono}. @@ -517,7 +517,7 @@ public Mono getPropertiesAsync(Integer timeout, String re * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link Response} on successful completion of {@link Mono}. @@ -543,7 +543,7 @@ public Mono> getPropertiesNoCustomHeadersWithRes * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Blob service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link Response} on successful completion of {@link Mono}. @@ -568,7 +568,7 @@ public Mono> getPropertiesNoCustomHeadersWithRes * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -593,7 +593,7 @@ public Mono> getPropertiesNoCustomHeadersWithRes * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -617,7 +617,7 @@ public Mono> getPropertiesNoCustomHeadersWithRes * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service on successful completion of {@link Mono}. */ @@ -637,7 +637,7 @@ public Mono getStatisticsAsync(Integer timeout, String re * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service on successful completion of {@link Mono}. */ @@ -657,7 +657,7 @@ public Mono getStatisticsAsync(Integer timeout, String re * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link Response} on successful completion of {@link Mono}. */ @@ -682,7 +682,7 @@ public Mono> getStatisticsNoCustomHeadersWithRes * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link Response} on successful completion of {@link Mono}. */ @@ -718,7 +718,7 @@ public Mono> getStatisticsNoCustomHeadersWithRes * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -764,7 +764,7 @@ public Mono> listBlobContainersSegmentSinglePag * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -808,7 +808,7 @@ public Mono> listBlobContainersSegmentSinglePag * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers as paginated response with {@link PagedFlux}. */ @@ -843,7 +843,7 @@ public PagedFlux listBlobContainersSegmentAsync(String prefix * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers as paginated response with {@link PagedFlux}. */ @@ -879,7 +879,7 @@ public PagedFlux listBlobContainersSegmentAsync(String prefix * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -925,7 +925,7 @@ public Mono> listBlobContainersSegmentNoCustomH * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -969,7 +969,7 @@ public Mono> listBlobContainersSegmentNoCustomH * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers as paginated response with {@link PagedFlux}. */ @@ -1006,7 +1006,7 @@ public PagedFlux listBlobContainersSegmentNoCustomHeadersAsyn * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers as paginated response with {@link PagedFlux}. */ @@ -1031,7 +1031,7 @@ public PagedFlux listBlobContainersSegmentNoCustomHeadersAsyn * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a user delegation key along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1057,7 +1057,7 @@ public PagedFlux listBlobContainersSegmentNoCustomHeadersAsyn * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a user delegation key along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1082,7 +1082,7 @@ public PagedFlux listBlobContainersSegmentNoCustomHeadersAsyn * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a user delegation key on successful completion of {@link Mono}. */ @@ -1104,7 +1104,7 @@ public Mono getUserDelegationKeyAsync(KeyInfo keyInfo, Intege * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a user delegation key on successful completion of {@link Mono}. */ @@ -1126,7 +1126,7 @@ public Mono getUserDelegationKeyAsync(KeyInfo keyInfo, Intege * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a user delegation key along with {@link Response} on successful completion of {@link Mono}. */ @@ -1152,7 +1152,7 @@ public Mono> getUserDelegationKeyNoCustomHeadersWith * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a user delegation key along with {@link Response} on successful completion of {@link Mono}. */ @@ -1169,7 +1169,7 @@ public Mono> getUserDelegationKeyNoCustomHeadersWith /** * Returns the sku name and account kind. * - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1187,7 +1187,7 @@ public Mono> getAccountInfoWit * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1202,7 +1202,7 @@ public Mono> getAccountInfoWit /** * Returns the sku name and account kind. * - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1216,7 +1216,7 @@ public Mono getAccountInfoAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1228,7 +1228,7 @@ public Mono getAccountInfoAsync(Context context) { /** * Returns the sku name and account kind. * - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1246,7 +1246,7 @@ public Mono> getAccountInfoNoCustomHeadersWithResponseAsync() { * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1272,7 +1272,7 @@ public Mono> getAccountInfoNoCustomHeadersWithResponseAsync(Conte * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1299,7 +1299,7 @@ public Mono>> submitBa * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1326,7 +1326,7 @@ public Mono>> submitBa * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1351,7 +1351,7 @@ public Flux submitBatchAsync(long contentLength, String multipartCon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1375,7 +1375,7 @@ public Flux submitBatchAsync(long contentLength, String multipartCon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1402,7 +1402,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(long con * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1428,7 +1428,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(long con * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1455,7 +1455,7 @@ public Mono>> submitBa * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1482,7 +1482,7 @@ public Mono>> submitBa * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1507,7 +1507,7 @@ public Flux submitBatchAsync(long contentLength, String multipartCon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1531,7 +1531,7 @@ public Flux submitBatchAsync(long contentLength, String multipartCon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1558,7 +1558,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(long con * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1594,7 +1594,7 @@ public Mono submitBatchNoCustomHeadersWithResponseAsync(long con * specified by maxresults, or than the default of 5000. * @param include Include this parameter to specify one or more datasets to include in the response. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -1638,7 +1638,7 @@ public Mono> filterB * @param include Include this parameter to specify one or more datasets to include in the response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -1681,7 +1681,7 @@ public Mono> filterB * specified by maxresults, or than the default of 5000. * @param include Include this parameter to specify one or more datasets to include in the response. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call on successful completion of {@link Mono}. */ @@ -1716,7 +1716,7 @@ public Mono filterBlobsAsync(Integer timeout, String requestI * @param include Include this parameter to specify one or more datasets to include in the response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call on successful completion of {@link Mono}. */ @@ -1750,7 +1750,7 @@ public Mono filterBlobsAsync(Integer timeout, String requestI * specified by maxresults, or than the default of 5000. * @param include Include this parameter to specify one or more datasets to include in the response. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link Response} on successful completion of * {@link Mono}. @@ -1793,7 +1793,7 @@ public Mono> filterBlobsNoCustomHeadersWithResponseA * @param include Include this parameter to specify one or more datasets to include in the response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a Filter Blobs API call along with {@link Response} on successful completion of * {@link Mono}. @@ -1822,7 +1822,7 @@ public Mono> filterBlobsNoCustomHeadersWithResponseA * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1847,7 +1847,7 @@ public Mono> listBlobContainersSegmentNextSingl * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1871,7 +1871,7 @@ public Mono> listBlobContainersSegmentNextSingl * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1896,7 +1896,7 @@ public Mono> listBlobContainersSegmentNextSingl * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws BlobStorageException thrown if the request is rejected by server. + * @throws BlobStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of containers along with {@link PagedResponse} on successful completion of {@link Mono}. */ diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/models/BlobStorageError.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/models/BlobStorageError.java new file mode 100644 index 000000000000..2b39250728ff --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/models/BlobStorageError.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.blob.implementation.models; + +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.xml.XmlReader; +import com.azure.xml.XmlSerializable; +import com.azure.xml.XmlToken; +import com.azure.xml.XmlWriter; + +import javax.xml.namespace.QName; +import javax.xml.stream.XMLStreamException; +import java.io.IOException; + +/** + * Represents an error response returned by the Azure Storage Blob service. + */ +public final class BlobStorageError implements JsonSerializable, XmlSerializable { + private String code; + private String message; + private String queryParameterName; + private String queryParameterValue; + private String reason; + private String extendedErrorDetail; + + private BlobStorageError() { + } + + /** + * Gets the error code returned by the Azure Storage Blob service. + * + * @return The error code. + */ + public String getCode() { + return code; + } + + /** + * Gets the error message returned by the Azure Storage Blob service. + * + * @return The error message. + */ + public String getMessage() { + return message; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + return jsonWriter.writeStartObject("Error") + .writeStringField("Code", code) + .writeStringField("Message", this.message) + .writeStringField("QueryParameterName", this.queryParameterName) + .writeStringField("QueryParameterValue", this.queryParameterValue) + .writeStringField("Reason", this.reason) + .writeStringField("ExtendedErrorDetail", this.extendedErrorDetail) + .writeEndObject(); + } + + /** + * Reads an instance of BlobStorageError from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BlobStorageError if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BlobStorageError. + */ + public static BlobStorageError fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + // Buffer the next JSON object as ResponseError can take two forms: + // + // - A BlobStorageError object + // - A BlobStorageError object wrapped in an "error" node. + JsonReader bufferedReader = reader.bufferObject(); + bufferedReader.nextToken(); // Get to the START_OBJECT token. + while (bufferedReader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = bufferedReader.getFieldName(); + bufferedReader.nextToken(); + + if ("error".equals(fieldName)) { + // If the BlobStorageError was wrapped in the "error" node begin reading it now. + return readBlobError(bufferedReader); + } else { + bufferedReader.skipChildren(); + } + } + + // Otherwise reset the JsonReader and read the whole JSON object. + return readBlobError(bufferedReader.reset()); + }); + } + + private static BlobStorageError readBlobError(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BlobStorageError deserializedStorageError = new BlobStorageError(); + + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedStorageError.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedStorageError.message = reader.getString(); + } else if ("queryParameterName".equals(fieldName)) { + deserializedStorageError.queryParameterName = reader.getString(); + } else if ("queryParameterValue".equals(fieldName)) { + deserializedStorageError.queryParameterValue = reader.getString(); + } else if ("reason".equals(fieldName)) { + deserializedStorageError.reason = reader.getString(); + } else if ("extendedErrorDetail".equals(fieldName)) { + deserializedStorageError.extendedErrorDetail = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageError; + }); + } + + @Override + public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLStreamException { + rootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + xmlWriter.writeStartElement(rootElementName); + xmlWriter.writeStringElement("Code", code); + xmlWriter.writeStringElement("Message", this.message); + xmlWriter.writeStringElement("QueryParameterName", this.queryParameterName); + xmlWriter.writeStringElement("QueryParameterValue", this.queryParameterValue); + xmlWriter.writeStringElement("Reason", this.reason); + xmlWriter.writeStringElement("ExtendedErrorDetail", this.extendedErrorDetail); + return xmlWriter.writeEndElement(); + } + + /** + * Reads an instance of BlobStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @return An instance of BlobStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the BlobStorageError. + */ + public static BlobStorageError fromXml(XmlReader xmlReader) throws XMLStreamException { + return fromXml(xmlReader, null); + } + + /** + * Reads an instance of BlobStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @param rootElementName Optional root element name to override the default defined by the model. Used to support + * cases where the model can deserialize from different root element names. + * @return An instance of BlobStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the BlobStorageError. + */ + public static BlobStorageError fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException { + String finalRootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + return xmlReader.readObject(finalRootElementName, reader -> { + BlobStorageError deserializedStorageError = new BlobStorageError(); + while (reader.nextElement() != XmlToken.END_ELEMENT) { + QName elementName = reader.getElementName(); + + if ("Code".equals(elementName.getLocalPart())) { + deserializedStorageError.code = reader.getStringElement(); + } else if ("Message".equals(elementName.getLocalPart())) { + deserializedStorageError.message = reader.getStringElement(); + } else if ("QueryParameterName".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterName = reader.getStringElement(); + } else if ("QueryParameterValue".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterValue = reader.getStringElement(); + } else if ("Reason".equals(elementName.getLocalPart())) { + deserializedStorageError.reason = reader.getStringElement(); + } else if ("ExtendedErrorDetail".equals(elementName.getLocalPart())) { + deserializedStorageError.extendedErrorDetail = reader.getStringElement(); + } + } + + return deserializedStorageError; + }); + } +} diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/models/BlobStorageExceptionInternal.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/models/BlobStorageExceptionInternal.java new file mode 100644 index 000000000000..2b9f9081930b --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/models/BlobStorageExceptionInternal.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.blob.implementation.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; +import com.azure.storage.common.implementation.StorageImplUtils; + +/** + * A {@code BlobStorageException} is thrown whenever Azure Storage successfully returns an error code that is not + * 200-level. Users can inspect the status code and error code to determine the cause of the error response. The + * exception message may also contain more detailed information depending on the type of error. The user may also + * inspect the raw HTTP response or call toString to get the full payload of the error response if present. Note that + * even some expected "errors" will be thrown as a {@code BlobStorageException}. For example, some users may perform a + * getProperties request on an entity to determine whether it exists or not. If it does not exists, an exception will be + * thrown even though this may be considered an expected indication of absence in this case. + * + *

Sample Code

+ *

For more samples, please see the sample + * file

+ */ +public final class BlobStorageExceptionInternal extends HttpResponseException { + /** + * Constructs a {@code BlobStorageException}. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized error response. + */ + public BlobStorageExceptionInternal(String message, HttpResponse response, BlobStorageError value) { + super(StorageImplUtils.convertStorageExceptionMessage(message, response), response, value); + } + + @Override + public BlobStorageError getValue() { + return (BlobStorageError) super.getValue(); + } +} diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobHeadersAndQueryParameters.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobHeadersAndQueryParameters.java index 75537680428f..ef785b6ba079 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobHeadersAndQueryParameters.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobHeadersAndQueryParameters.java @@ -41,7 +41,7 @@ public class BlobHeadersAndQueryParameters { /** * Gets the Storage Blob whitelist headers for log. * - * @return the list of Storage Blob whitelist headers. + * @return the set of Storage Blob whitelist headers. */ public static Set getBlobHeaders() { return BLOB_HEADERS; @@ -56,7 +56,7 @@ public static Set getBlobHeaders() { /** * Gets the Storage Blob whitelist query parameters for log. * - * @return the list of Storage Blob whitelist query parameters. + * @return the set of Storage Blob whitelist query parameters. */ public static Set getBlobQueryParameters() { return BLOB_QUERY_PARAMETERS; diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobQueryReader.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobQueryReader.java index e1212ef99149..d2dd45333eb3 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobQueryReader.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobQueryReader.java @@ -36,7 +36,7 @@ /** * This class provides helper methods for blob query functions. - * + *

* RESERVED FOR INTERNAL USE. */ public class BlobQueryReader { @@ -61,7 +61,7 @@ public BlobQueryReader(Flux avro, Consumer progre /** * Avro parses a query reactive stream. - * + *

* The Avro stream is formatted as the Avro Header (that specifies the schema) and the Avro Body (that contains * a series of blocks of data). The Query Avro schema indicates that the objects being emitted from the parser can * either be a result data record, an end record, a progress record or an error record. diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobUserAgentModificationPolicy.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobUserAgentModificationPolicy.java index 2f1266b70bcc..ae397665a014 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobUserAgentModificationPolicy.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BlobUserAgentModificationPolicy.java @@ -3,6 +3,7 @@ package com.azure.storage.blob.implementation.util; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpPipelineCallContext; import com.azure.core.http.HttpPipelineNextPolicy; import com.azure.core.http.HttpPipelinePosition; @@ -24,7 +25,6 @@ public class BlobUserAgentModificationPolicy implements HttpPipelinePolicy { private final String clientName; private final String clientVersion; - private static final String USER_AGENT = "User-Agent"; private static final String REGEX = "(.*? )?(azsdk-java-azure-storage-blob/12\\.\\d{1,2}\\.\\d{1,2}(?:-beta\\.\\d{1,2})?)( .*?)?"; private static final Pattern PATTERN = Pattern.compile(REGEX); @@ -41,8 +41,7 @@ public BlobUserAgentModificationPolicy(String clientName, String clientVersion) @Override public Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) { - - String userAgent = context.getHttpRequest().getHeaders().getValue(USER_AGENT); + String userAgent = context.getHttpRequest().getHeaders().getValue(HttpHeaderName.USER_AGENT); Matcher matcher = PATTERN.matcher(userAgent); StringBuilder builder = new StringBuilder(); if (matcher.matches()) { @@ -50,10 +49,9 @@ public Mono process(HttpPipelineCallContext context, HttpPipelineN .append(matcher.group(2) == null ? "" : matcher.group(2)) .append(" ").append("azsdk-java-").append(clientName).append("/").append(clientVersion) .append(matcher.group(3) == null ? "" : matcher.group(3)); - } else { - builder.append(userAgent); + context.getHttpRequest().getHeaders().set(HttpHeaderName.USER_AGENT, builder.toString()); } - context.getHttpRequest().getHeaders().put("User-Agent", builder.toString()); + return next.process(); } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BuilderHelper.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BuilderHelper.java index cf76dc72f4d5..643b5e4f9227 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BuilderHelper.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/BuilderHelper.java @@ -6,6 +6,7 @@ import com.azure.core.credential.AzureSasCredential; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; @@ -217,8 +218,8 @@ private static UserAgentPolicy getUserAgentPolicy(Configuration configuration, H */ private static HttpPipelinePolicy getResponseValidationPolicy() { return new ResponseValidationPolicyBuilder() - .addOptionalEcho(Constants.HeaderConstants.CLIENT_REQUEST_ID) - .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) + .addOptionalEcho(HttpHeaderName.X_MS_CLIENT_REQUEST_ID) + .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME) .build(); } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ChunkedDownloadUtils.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ChunkedDownloadUtils.java index 2cbf982ef25c..cf6f0add6b4c 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ChunkedDownloadUtils.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ChunkedDownloadUtils.java @@ -3,6 +3,8 @@ package com.azure.storage.blob.implementation.util; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.util.CoreUtils; import com.azure.storage.blob.models.BlobDownloadAsyncResponse; import com.azure.storage.blob.models.BlobErrorCode; import com.azure.storage.blob.models.BlobRange; @@ -12,6 +14,7 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import reactor.util.function.Tuple3; +import reactor.util.function.Tuples; import java.util.function.BiFunction; import java.util.function.Function; @@ -42,7 +45,7 @@ public static Mono { + .map(response -> { /* Either the etag was set and it matches because the download succeeded, so this is a no-op, or there was no etag, so we set it here. ETag locking is vital to ensure we download one, consistent view @@ -62,7 +65,7 @@ public static Mono (totalLength - range.getOffset()) ? totalLength - range.getOffset() : range.getCount(); - return Mono.zip(Mono.just(newCount), Mono.just(newConditions), Mono.just(response)); + return Tuples.of(newCount, newConditions, response); }) .onErrorResume(BlobStorageException.class, blobStorageException -> { /* @@ -73,22 +76,23 @@ public static Mono { + .handle((response, sink) -> { /* Ensure the blob is still 0 length by checking our download was the full length. (200 is for full blob; 206 is partial). */ if (response.getStatusCode() != 200) { - return Mono.error(new IllegalStateException("Blob was modified mid download. It was " + sink.error(new IllegalStateException("Blob was modified mid download. It was " + "originally 0 bytes and is now larger.")); + } else { + sink.next(Tuples.of(0L, requestConditions, response)); } - return Mono.zip(Mono.just(0L), Mono.just(requestConditions), Mono.just(response)); }); } @@ -128,8 +132,7 @@ private static BlobRequestConditions setEtag(BlobRequestConditions requestCondit } public static long extractTotalBlobLength(String contentRange) { - int index = contentRange.indexOf('/'); - return Long.parseLong(contentRange.substring(index + 1)); + return CoreUtils.extractSizeFromContentRange(contentRange); } public static int calculateNumBlocks(long dataSize, long blockLength) { diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java index 48084067c4f2..79419e3c67d1 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/util/ModelHelper.java @@ -18,6 +18,7 @@ import com.azure.storage.blob.implementation.models.BlobItemInternal; import com.azure.storage.blob.implementation.models.BlobName; import com.azure.storage.blob.implementation.models.BlobPropertiesInternalDownload; +import com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal; import com.azure.storage.blob.implementation.models.BlobTag; import com.azure.storage.blob.implementation.models.BlobTags; import com.azure.storage.blob.implementation.models.BlobsDownloadHeaders; @@ -32,6 +33,7 @@ import com.azure.storage.blob.models.BlobProperties; import com.azure.storage.blob.models.BlobQueryHeaders; import com.azure.storage.blob.models.BlobRequestConditions; +import com.azure.storage.blob.models.BlobStorageException; import com.azure.storage.blob.models.ObjectReplicationPolicy; import com.azure.storage.blob.models.ObjectReplicationRule; import com.azure.storage.blob.models.ObjectReplicationStatus; @@ -466,6 +468,27 @@ public static long getBlobLength(BlobDownloadHeaders headers) { : ChunkedDownloadUtils.extractTotalBlobLength(headers.getContentRange()); } + /** + * Maps the internal exception to a public exception, if and only if {@code internal} is an instance of + * {@link BlobStorageExceptionInternal} and it will be mapped to {@link BlobStorageException}. + *

+ * The internal exception is required as the public exception was created using Object as the exception value. This + * was incorrect and should have been a specific type that was XML deserializable. So, an internal exception was + * added to handle this and we map that to the public exception, keeping the API the same. + * + * @param internal The internal exception. + * @return The public exception. + */ + public static Throwable mapToBlobStorageException(Throwable internal) { + if (internal instanceof BlobStorageExceptionInternal) { + BlobStorageExceptionInternal internalException = (BlobStorageExceptionInternal) internal; + return new BlobStorageException(internalException.getMessage(), internalException.getResponse(), + internalException.getValue()); + } + + return internal; + } + private ModelHelper() { } } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobStorageException.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobStorageException.java index 733ed4be3138..16cafce29945 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobStorageException.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobStorageException.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpResponse; import com.azure.storage.common.implementation.StorageImplUtils; -import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE; +import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE_HEADER_NAME; /** * A {@code BlobStorageException} is thrown whenever Azure Storage successfully returns an error code that is not @@ -38,7 +38,7 @@ public BlobStorageException(String message, HttpResponse response, Object value) * @return The error code returned by the service. */ public BlobErrorCode getErrorCode() { - return BlobErrorCode.fromString(super.getResponse().getHeaders().getValue(ERROR_CODE)); + return BlobErrorCode.fromString(super.getResponse().getHeaders().getValue(ERROR_CODE_HEADER_NAME)); } /** diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/AppendBlobAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/AppendBlobAsyncClient.java index 34f32e9db2f1..21627137d816 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/AppendBlobAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/AppendBlobAsyncClient.java @@ -22,6 +22,7 @@ import com.azure.storage.blob.implementation.models.AppendBlobsAppendBlockHeaders; import com.azure.storage.blob.implementation.models.AppendBlobsCreateHeaders; import com.azure.storage.blob.implementation.models.EncryptionScope; +import com.azure.storage.blob.implementation.util.ModelHelper; import com.azure.storage.blob.models.AppendBlobItem; import com.azure.storage.blob.models.AppendBlobRequestConditions; import com.azure.storage.blob.models.BlobHttpHeaders; @@ -293,6 +294,7 @@ Mono> createWithResponse(AppendBlobCreateOptions option tagsToString(options.getTags()), immutabilityPolicy.getExpiryTime(), immutabilityPolicy.getPolicyMode(), options.hasLegalHold(), options.getHeaders(), getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { AppendBlobsCreateHeaders hd = rb.getDeserializedHeaders(); AppendBlobItem item = new AppendBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -473,6 +475,7 @@ Mono> appendBlockWithResponse(Flux data, lo appendBlobRequestConditions.getIfMatch(), appendBlobRequestConditions.getIfNoneMatch(), appendBlobRequestConditions.getTagsConditions(), null, getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { AppendBlobsAppendBlockHeaders hd = rb.getDeserializedHeaders(); AppendBlobItem item = new AppendBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -608,6 +611,7 @@ Mono> appendBlockFromUrlWithResponse(AppendBlobAppendBl sourceRequestConditions.getIfUnmodifiedSince(), sourceRequestConditions.getIfMatch(), sourceRequestConditions.getIfNoneMatch(), null, sourceAuth, getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { AppendBlobsAppendBlockFromUrlHeaders hd = rb.getDeserializedHeaders(); AppendBlobItem item = new AppendBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -672,7 +676,8 @@ Mono> sealWithResponse(AppendBlobSealOptions options, Context con return this.azureBlobStorage.getAppendBlobs().sealNoCustomHeadersWithResponseAsync(containerName, blobName, null, null, requestConditions.getLeaseId(), requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), - requestConditions.getIfNoneMatch(), requestConditions.getAppendPosition(), context); + requestConditions.getIfNoneMatch(), requestConditions.getAppendPosition(), context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java index a9d489c13feb..2723d5c1c685 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java @@ -766,6 +766,7 @@ private Mono onStart(String sourceUrl, Map metadat destinationRequestConditions.getTagsConditions(), destinationRequestConditions.getLeaseId(), null, tagsToString(tags), sealBlob, immutabilityPolicy.getExpiryTime(), immutabilityPolicy.getPolicyMode(), legalHold, context)) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> { final BlobsStartCopyFromURLHeaders headers = response.getDeserializedHeaders(); @@ -896,7 +897,8 @@ public Mono> abortCopyFromUrlWithResponse(String copyId, String l Mono> abortCopyFromUrlWithResponse(String copyId, String leaseId, Context context) { return this.azureBlobStorage.getBlobs().abortCopyFromURLNoCustomHeadersWithResponseAsync( - containerName, blobName, copyId, null, leaseId, null, context); + containerName, blobName, copyId, null, leaseId, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1036,6 +1038,7 @@ Mono> copyFromUrlWithResponse(BlobCopyFromUrlOptions options, C destRequestConditions.getLeaseId(), null, null, tagsToString(options.getTags()), immutabilityPolicy.getExpiryTime(), immutabilityPolicy.getPolicyMode(), options.hasLegalHold(), sourceAuth, options.getCopySourceTagsMode(), this.encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsCopyId())); } @@ -1332,7 +1335,8 @@ private Mono downloadRange(BlobRange range, BlobRequestCondition versionId, null, range.toHeaderValue(), requestConditions.getLeaseId(), getMD5, null, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), eTag, requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, - customerProvidedKey, context); + customerProvidedKey, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1681,7 +1685,8 @@ Mono> deleteWithResponse(DeleteSnapshotsOptionType deleteBlobSnap snapshot, versionId, null, requestConditions.getLeaseId(), deleteBlobSnapshotOptions, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), - null, null, context); + null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1828,6 +1833,7 @@ Mono> getPropertiesWithResponse(BlobRequestConditions r requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, customerProvidedKey, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, BlobPropertiesConstructorProxy .create(new BlobPropertiesInternalGetProperties(rb.getDeserializedHeaders())))); } @@ -1836,7 +1842,8 @@ Mono> getPropertiesWithResponseNoHeaders(Context context) { context = context == null ? Context.NONE : context; return this.azureBlobStorage.getBlobs().getPropertiesNoCustomHeadersWithResponseAsync(containerName, blobName, - snapshot, versionId, null, null, null, null, null, null, null, null, customerProvidedKey, context); + snapshot, versionId, null, null, null, null, null, null, null, null, customerProvidedKey, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1907,7 +1914,8 @@ Mono> setHttpHeadersWithResponse(BlobHttpHeaders headers, BlobReq return this.azureBlobStorage.getBlobs().setHttpHeadersNoCustomHeadersWithResponseAsync(containerName, blobName, null, requestConditions.getLeaseId(), requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), - requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, headers, context); + requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, headers, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1976,7 +1984,8 @@ Mono> setMetadataWithResponse(Map metadata, BlobR null, metadata, requestConditions.getLeaseId(), requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, customerProvidedKey, - encryptionScope, context); + encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -2034,6 +2043,7 @@ Mono>> getTagsWithResponse(BlobGetTagsOptions optio ? new BlobRequestConditions() : options.getRequestConditions(); return this.azureBlobStorage.getBlobs().getTagsWithResponseAsync(containerName, blobName, null, null, snapshot, versionId, requestConditions.getTagsConditions(), requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> { Map tags = new HashMap<>(); for (BlobTag tag : response.getValue().getBlobTagSet()) { @@ -2112,7 +2122,8 @@ Mono> setTagsWithResponse(BlobSetTagsOptions options, Context con BlobTags t = new BlobTags().setBlobTagSet(tagList); return this.azureBlobStorage.getBlobs().setTagsNoCustomHeadersWithResponseAsync(containerName, blobName, null, versionId, null, null, null, requestConditions.getTagsConditions(), requestConditions.getLeaseId(), t, - context); + context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -2182,6 +2193,7 @@ Mono> createSnapshotWithResponse(Map new SimpleResponse<>(rb, this.getSnapshotClient(rb.getDeserializedHeaders().getXMsSnapshot()))); } @@ -2286,7 +2298,8 @@ Mono> setTierWithResponse(BlobSetAccessTierOptions options, Conte return this.azureBlobStorage.getBlobs().setTierNoCustomHeadersWithResponseAsync(containerName, blobName, options.getTier(), snapshot, versionId, null, options.getPriority(), null, options.getLeaseId(), - options.getTagsConditions(), context); + options.getTagsConditions(), context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -2338,7 +2351,8 @@ public Mono> undeleteWithResponse() { Mono> undeleteWithResponse(Context context) { return this.azureBlobStorage.getBlobs().undeleteNoCustomHeadersWithResponseAsync(containerName, blobName, null, - null, context); + null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -2391,6 +2405,7 @@ public Mono> getAccountInfoWithResponse() { Mono> getAccountInfoWithResponse(Context context) { return this.azureBlobStorage.getBlobs().getAccountInfoWithResponseAsync(containerName, blobName, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { BlobsGetAccountInfoHeaders hd = rb.getDeserializedHeaders(); return new SimpleResponse<>(rb, new StorageAccountInfo(hd.getXMsSkuName(), hd.getXMsAccountKind())); @@ -2668,6 +2683,7 @@ Mono queryWithResponse(BlobQueryOptions queryOptions, Co requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, qr, getCustomerProvidedKey(), context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new BlobQueryAsyncResponse(response.getRequest(), response.getStatusCode(), response.getHeaders(), /* Parse the avro reactive stream. */ @@ -2759,6 +2775,7 @@ Mono> setImmutabilityPolicyWithResponse( return this.azureBlobStorage.getBlobs().setImmutabilityPolicyWithResponseAsync(containerName, blobName, null, null, finalRequestConditions.getIfUnmodifiedSince(), finalImmutabilityPolicy.getExpiryTime(), finalImmutabilityPolicy.getPolicyMode(), context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> { BlobsSetImmutabilityPolicyHeaders headers = response.getDeserializedHeaders(); BlobImmutabilityPolicy responsePolicy = new BlobImmutabilityPolicy() @@ -2817,7 +2834,8 @@ public Mono> deleteImmutabilityPolicyWithResponse() { Mono> deleteImmutabilityPolicyWithResponse(Context context) { context = context == null ? Context.NONE : context; return this.azureBlobStorage.getBlobs() - .deleteImmutabilityPolicyNoCustomHeadersWithResponseAsync(containerName, blobName, null, null, context); + .deleteImmutabilityPolicyNoCustomHeadersWithResponseAsync(containerName, blobName, null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -2872,6 +2890,7 @@ Mono> setLegalHoldWithResponse(boolean legalHold, context = context == null ? Context.NONE : context; return this.azureBlobStorage.getBlobs().setLegalHoldWithResponseAsync(containerName, blobName, legalHold, null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new SimpleResponse<>(response, new InternalBlobLegalHoldResult(response.getDeserializedHeaders().isXMsLegalHold()))); } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobLeaseAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobLeaseAsyncClient.java index f7eb85149daf..67874c1057b5 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobLeaseAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobLeaseAsyncClient.java @@ -207,11 +207,13 @@ Mono> acquireLeaseWithResponse(BlobAcquireLeaseOptions options, requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } else { response = this.client.getContainers().acquireLeaseWithResponseAsync(containerName, null, options.getDuration(), this.leaseId, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } @@ -306,11 +308,13 @@ Mono> renewLeaseWithResponse(BlobRenewLeaseOptions options, Con requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } else { response = this.client.getContainers().renewLeaseWithResponseAsync(containerName, this.leaseId, null, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } @@ -402,10 +406,12 @@ Mono> releaseLeaseWithResponse(BlobReleaseLeaseOptions options, C return this.client.getBlobs().releaseLeaseNoCustomHeadersWithResponseAsync(containerName, blobName, this.leaseId, null, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), - requestConditions.getTagsConditions(), null, context); + requestConditions.getTagsConditions(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } else { return this.client.getContainers().releaseLeaseNoCustomHeadersWithResponseAsync(containerName, this.leaseId, - null, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), null, context); + null, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } } @@ -513,11 +519,13 @@ Mono> breakLeaseWithResponse(BlobBreakLeaseOptions options, Co requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseTime())); } else { return this.client.getContainers().breakLeaseWithResponseAsync(containerName, null, breakPeriod, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseTime())); } } @@ -612,12 +620,14 @@ Mono> changeLeaseWithResponse(BlobChangeLeaseOptions options, C requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } else { response = this.client.getContainers().changeLeaseWithResponseAsync(containerName, this.leaseId, options.getProposedId(), null, requestConditions.getIfModifiedSince(), requestConditions.getIfUnmodifiedSince(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlockBlobAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlockBlobAsyncClient.java index cde4a3378032..22c3c46ca4ab 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlockBlobAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlockBlobAsyncClient.java @@ -19,6 +19,7 @@ import com.azure.storage.blob.implementation.models.BlockBlobsPutBlobFromUrlHeaders; import com.azure.storage.blob.implementation.models.BlockBlobsUploadHeaders; import com.azure.storage.blob.implementation.models.EncryptionScope; +import com.azure.storage.blob.implementation.util.ModelHelper; import com.azure.storage.blob.models.AccessTier; import com.azure.storage.blob.models.BlobHttpHeaders; import com.azure.storage.blob.models.BlobImmutabilityPolicy; @@ -437,13 +438,14 @@ Mono> uploadWithResponse(BlockBlobSimpleUploadOptions op tagsToString(options.getTags()), immutabilityPolicy.getExpiryTime(), immutabilityPolicy.getPolicyMode(), options.isLegalHold(), null, options.getHeaders(), getCustomerProvidedKey(), encryptionScope, finalContext) - .map(rb -> { - BlockBlobsUploadHeaders hd = rb.getDeserializedHeaders(); - BlockBlobItem item = new BlockBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), - hd.isXMsRequestServerEncrypted(), hd.getXMsEncryptionKeySha256(), hd.getXMsEncryptionScope(), - hd.getXMsVersionId()); - return new SimpleResponse<>(rb, item); - })); + .onErrorMap(ModelHelper::mapToBlobStorageException) + .map(rb -> { + BlockBlobsUploadHeaders hd = rb.getDeserializedHeaders(); + BlockBlobItem item = new BlockBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), + hd.isXMsRequestServerEncrypted(), hd.getXMsEncryptionKeySha256(), hd.getXMsEncryptionScope(), + hd.getXMsVersionId()); + return new SimpleResponse<>(rb, item); + })); } /** @@ -590,6 +592,7 @@ Mono> uploadFromUrlWithResponse(BlobUploadFromUrlOptions options.isCopySourceBlobProperties(), sourceAuth, options.getCopySourceTagsMode(), options.getHeaders(), getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { BlockBlobsPutBlobFromUrlHeaders hd = rb.getDeserializedHeaders(); BlockBlobItem item = new BlockBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -758,7 +761,8 @@ Mono> stageBlockWithResponse(String base64BlockId, BinaryData dat context = context == null ? Context.NONE : context; return this.azureBlobStorage.getBlockBlobs().stageBlockNoCustomHeadersWithResponseAsync(containerName, blobName, base64BlockId, data.getLength(), data, contentMd5, null, null, leaseId, null, getCustomerProvidedKey(), - encryptionScope, context); + encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -884,7 +888,8 @@ Mono> stageBlockFromUrlWithResponse(BlockBlobStageBlockFromUrlOpt options.getSourceContentMd5(), null, null, options.getLeaseId(), sourceRequestConditions.getIfModifiedSince(), sourceRequestConditions.getIfUnmodifiedSince(), sourceRequestConditions.getIfMatch(), sourceRequestConditions.getIfNoneMatch(), null, sourceAuth, - getCustomerProvidedKey(), encryptionScope, context); + getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -988,6 +993,7 @@ Mono> listBlocksWithResponse(BlockBlobListBlocksOptions opti return this.azureBlobStorage.getBlockBlobs().getBlockListWithResponseAsync( containerName, blobName, options.getType(), getSnapshotId(), null, options.getLeaseId(), options.getIfTagsMatch(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new SimpleResponse<>(response, response.getValue())); } @@ -1154,6 +1160,7 @@ Mono> commitBlockListWithResponse(BlockBlobCommitBlockLi tagsToString(options.getTags()), immutabilityPolicy.getExpiryTime(), immutabilityPolicy.getPolicyMode(), options.isLegalHold(), options.getHeaders(), getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { BlockBlobsCommitBlockListHeaders hd = rb.getDeserializedHeaders(); BlockBlobItem item = new BlockBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/PageBlobAsyncClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/PageBlobAsyncClient.java index e195179ce438..46321992d4e4 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/PageBlobAsyncClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/PageBlobAsyncClient.java @@ -343,6 +343,7 @@ Mono> createWithResponse(PageBlobCreateOptions options, C immutabilityPolicy.getExpiryTime(), immutabilityPolicy.getPolicyMode(), options.isLegalHold(), options.getHeaders(), getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { PageBlobsCreateHeaders hd = rb.getDeserializedHeaders(); PageBlobItem item = new PageBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -543,6 +544,7 @@ Mono> uploadPagesWithResponse(PageRange pageRange, Flux { PageBlobsUploadPagesHeaders hd = rb.getDeserializedHeaders(); PageBlobItem item = new PageBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -722,6 +724,7 @@ Mono> uploadPagesFromUrlWithResponse(PageBlobUploadPagesF sourceRequestConditions.getIfUnmodifiedSince(), sourceRequestConditions.getIfMatch(), sourceRequestConditions.getIfNoneMatch(), null, sourceAuth, getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { PageBlobsUploadPagesFromURLHeaders hd = rb.getDeserializedHeaders(); PageBlobItem item = new PageBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -816,6 +819,7 @@ Mono> clearPagesWithResponse(PageRange pageRange, pageBlobRequestConditions.getIfUnmodifiedSince(), pageBlobRequestConditions.getIfMatch(), pageBlobRequestConditions.getIfNoneMatch(), pageBlobRequestConditions.getTagsConditions(), null, getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { PageBlobsClearPagesHeaders hd = rb.getDeserializedHeaders(); PageBlobItem item = new PageBlobItem(hd.getETag(), hd.getLastModified(), hd.getContentMD5(), @@ -904,6 +908,7 @@ Mono> getPageRangesWithResponse(BlobRange blobRange, BlobRequ requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), response.getValue())); } @@ -1018,7 +1023,8 @@ private Mono> getPageRange requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, marker, options.getMaxResultsPerPage(), context), - timeout); + timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException); } private static PageRangeItem toPageBlobRange(PageRange range) { @@ -1276,6 +1282,7 @@ Mono> getPageRangesDiffWithResponse(BlobRange blobRange, Stri requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, null, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(response -> new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), response.getValue())); } @@ -1340,7 +1347,8 @@ private Mono> getPageR requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, marker, options.getMaxResultsPerPage(), context), - timeout); + timeout) + .onErrorMap(ModelHelper::mapToBlobStorageException); } /** @@ -1415,6 +1423,7 @@ Mono> resizeWithResponse(long size, BlobRequestConditions requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), null, getCustomerProvidedKey(), encryptionScope, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { PageBlobsResizeHeaders hd = rb.getDeserializedHeaders(); PageBlobItem item = new PageBlobItem(hd.getETag(), hd.getLastModified(), null, null, null, null, @@ -1501,6 +1510,7 @@ Mono> updateSequenceNumberWithResponse(SequenceNumberActi requestConditions.getIfUnmodifiedSince(), requestConditions.getIfMatch(), requestConditions.getIfNoneMatch(), requestConditions.getTagsConditions(), sequenceNumber, null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> { PageBlobsUpdateSequenceNumberHeaders hd = rb.getDeserializedHeaders(); PageBlobItem item = new PageBlobItem(hd.getETag(), hd.getLastModified(), null, null, null, null, @@ -1693,6 +1703,7 @@ Mono> copyIncrementalWithResponse(PageBlobCopyIncrement modifiedRequestConditions.getIfUnmodifiedSince(), modifiedRequestConditions.getIfMatch(), modifiedRequestConditions.getIfNoneMatch(), modifiedRequestConditions.getTagsConditions(), null, context) + .onErrorMap(ModelHelper::mapToBlobStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsCopyStatus())); } } diff --git a/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobErrorDeserializationTests.java b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobErrorDeserializationTests.java new file mode 100644 index 000000000000..51e1856b24d3 --- /dev/null +++ b/sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/BlobErrorDeserializationTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.blob; + +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.test.utils.MockTokenCredential; +import com.azure.storage.blob.models.BlobStorageException; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +import java.nio.charset.StandardCharsets; + +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * Tests cases where the service returns a response that would result in a {@link BlobStorageException} being thrown + * with a response body that needs to be deserialized. + */ +public class BlobErrorDeserializationTests { + @Test + public void errorResponseBody() { + String errorResponse = "ContainerAlreadyExists" + + "The specified container already exists."; + HttpPipeline httpPipeline = new HttpPipelineBuilder() + .httpClient(request -> Mono.just(new MockHttpResponse(request, 409, + new HttpHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/xml"), + errorResponse.getBytes(StandardCharsets.UTF_8)))) + .build(); + BlobContainerClient containerClient = new BlobContainerClientBuilder() + .endpoint("https://account.blob.core.windows.net/container") + .credential(new MockTokenCredential()) + .pipeline(httpPipeline) + .buildClient(); + + BlobStorageException exception = assertThrows(BlobStorageException.class, containerClient::create); + assertTrue(exception.getMessage().contains("The specified container already exists.")); + // assertEquals(BlobErrorCode.CONTAINER_ALREADY_EXISTS, exception.getErrorCode()); + } +} diff --git a/sdk/storage/azure-storage-blob/swagger/README.md b/sdk/storage/azure-storage-blob/swagger/README.md index 820f2dd8338e..125c549a9e1c 100644 --- a/sdk/storage/azure-storage-blob/swagger/README.md +++ b/sdk/storage/azure-storage-blob/swagger/README.md @@ -26,7 +26,7 @@ service-interface-as-public: true license-header: MICROSOFT_MIT_SMALL context-client-method-parameter: true optional-constant-as-enum: true -default-http-exception-type: com.azure.storage.blob.models.BlobStorageException +default-http-exception-type: com.azure.storage.blob.implementation.models.BlobStorageExceptionInternal models-subpackage: implementation.models custom-types: BlobAccessPolicy,AccessTier,AccountKind,ArchiveStatus,BlobHttpHeaders,BlobContainerItem,BlobContainerItemProperties,BlobContainerEncryptionScope,BlobServiceProperties,BlobType,Block,BlockList,BlockListType,BlockLookupList,ClearRange,CopyStatusType,BlobCorsRule,CpkInfo,CustomerProvidedKeyInfo,DeleteSnapshotsOptionType,EncryptionAlgorithmType,FilterBlobsItem,GeoReplication,GeoReplicationStatusType,KeyInfo,LeaseDurationType,LeaseStateType,LeaseStatusType,ListBlobContainersIncludeType,ListBlobsIncludeItem,BlobAnalyticsLogging,BlobMetrics,PageList,PageRange,PathRenameMode,PublicAccessType,RehydratePriority,BlobRetentionPolicy,SequenceNumberActionType,BlobSignedIdentifier,SkuName,StaticWebsite,BlobErrorCode,BlobServiceStatistics,SyncCopyStatusType,UserDelegationKey,BlobQueryHeaders,GeoReplicationStatus,BlobImmutabilityPolicyMode,BlobCopySourceTagsMode custom-types-subpackage: models diff --git a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/Constants.java b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/Constants.java index 4e265fc3b1a6..936acae5cd94 100644 --- a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/Constants.java +++ b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/Constants.java @@ -3,6 +3,7 @@ package com.azure.storage.common.implementation; +import com.azure.core.http.HttpHeaderName; import com.azure.core.util.Configuration; import com.azure.storage.common.sas.SasProtocol; import java.time.ZoneId; @@ -223,6 +224,8 @@ public static final class HeaderConstants { */ public static final String ERROR_CODE = "x-ms-error-code"; + public static final HttpHeaderName ERROR_CODE_HEADER_NAME = HttpHeaderName.fromString(ERROR_CODE); + /** * Compression type used on the body. */ @@ -235,6 +238,8 @@ public static final class HeaderConstants { public static final String ENCRYPTION_KEY = "x-ms-encryption-key"; public static final String ENCRYPTION_KEY_SHA256 = "x-ms-encryption-key-sha256"; + public static final HttpHeaderName ENCRYPTION_KEY_SHA256_HEADER_NAME + = HttpHeaderName.fromString(ENCRYPTION_KEY_SHA256); public static final String SERVER_ENCRYPTED = "x-ms-server-encrypted"; diff --git a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/StorageImplUtils.java b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/StorageImplUtils.java index a2560e440e29..941d71fa3082 100644 --- a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/StorageImplUtils.java +++ b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/StorageImplUtils.java @@ -41,7 +41,7 @@ import java.util.function.Supplier; import static com.azure.storage.common.Utility.urlDecode; -import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE; +import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE_HEADER_NAME; /** * Utility class which is used internally. @@ -307,11 +307,11 @@ public static String convertStorageExceptionMessage(String message, HttpResponse } if (response.getRequest() != null && response.getRequest().getHttpMethod() != null && response.getRequest().getHttpMethod().equals(HttpMethod.HEAD) - && response.getHeaders().getValue(ERROR_CODE) != null) { + && response.getHeaders().getValue(ERROR_CODE_HEADER_NAME) != null) { int indexOfEmptyBody = message.indexOf("(empty body)"); if (indexOfEmptyBody >= 0) { return message.substring(0, indexOfEmptyBody) - + response.getHeaders().getValue(ERROR_CODE) + + response.getHeaders().getValue(ERROR_CODE_HEADER_NAME) + message.substring(indexOfEmptyBody + 12); } } diff --git a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy/ResponseValidationPolicyBuilder.java b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy/ResponseValidationPolicyBuilder.java index 92ae4cd8e787..005d38857210 100644 --- a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy/ResponseValidationPolicyBuilder.java +++ b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy/ResponseValidationPolicyBuilder.java @@ -44,7 +44,9 @@ public HttpPipelinePolicy build() { * * @param headerName The header to validate. * @return This policy. + * @deprecated Use {@link #addOptionalEcho(HttpHeaderName)} instead. */ + @Deprecated public ResponseValidationPolicyBuilder addOptionalEcho(String headerName) { assertions.add((httpResponse, logger) -> { HttpHeaderName httpHeaderName = HttpHeaderName.fromString(headerName); @@ -61,6 +63,28 @@ public ResponseValidationPolicyBuilder addOptionalEcho(String headerName) { return this; } + /** + * Fluently applies an optional validation to this policy where, if the response contains the given header, asserts + * its value is an echo of the value provided in the request. + * + * @param headerName The header to validate. + * @return This policy. + */ + public ResponseValidationPolicyBuilder addOptionalEcho(HttpHeaderName headerName) { + assertions.add((httpResponse, logger) -> { + String requestHeaderValue = httpResponse.getRequest().getHeaders().getValue(headerName); + String responseHeaderValue = httpResponse.getHeaders().getValue(headerName); + if (responseHeaderValue != null && !responseHeaderValue.equals(requestHeaderValue)) { + throw logger.logExceptionAsError(new RuntimeException(String.format( + "Unexpected header value. Expected response to echo `%s: %s`. Got value `%s`.", + headerName, requestHeaderValue, responseHeaderValue + ))); + } + }); + + return this; + } + /** * Immutable policy for asserting validations on general responses. */ diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java index e804769d3f01..06f25edfe533 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java @@ -24,12 +24,13 @@ import com.azure.storage.common.Utility; import com.azure.storage.common.implementation.Constants; import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.models.CpkInfo; import com.azure.storage.file.datalake.implementation.models.FileSystemsListPathsHeaders; import com.azure.storage.file.datalake.implementation.models.PathList; import com.azure.storage.file.datalake.implementation.models.PathResourceType; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; +import com.azure.storage.file.datalake.implementation.util.ModelHelper; import com.azure.storage.file.datalake.implementation.util.TransformUtils; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeStorageException; @@ -1286,7 +1287,8 @@ private Mono> listPathsSegme return StorageImplUtils.applyOptionalTimeout( this.fileSystemDataLakeStorage.getFileSystems().listPathsWithResponseAsync( recursive, null, null, marker, getDirectoryPath(), maxResults, userPrincipleNameReturned, - Context.NONE), timeout); + Context.NONE), timeout) + .onErrorMap(ModelHelper::mapToDataLakeStorageException); } /** diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java index f62cbe8812ce..5fb2a3917ddb 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java @@ -15,7 +15,6 @@ import com.azure.core.http.rest.ResponseBase; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; import com.azure.storage.blob.specialized.BlockBlobClient; import com.azure.storage.blob.specialized.SpecializedBlobClientBuilder; import com.azure.storage.common.Utility; @@ -45,6 +44,8 @@ import java.util.function.BiFunction; import java.util.stream.Collectors; +import static com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils.wrapServiceCallWithExceptionMapping; + /** * This class provides a client that contains directory operations for Azure Storage Data Lake. Operations provided by * this client include creating a directory, deleting a directory, renaming a directory, setting metadata and @@ -63,7 +64,6 @@ */ @ServiceClient(builder = DataLakePathClientBuilder.class) public class DataLakeDirectoryClient extends DataLakePathClient { - private static final ClientLogger LOGGER = new ClientLogger(DataLakeDirectoryClient.class); private final DataLakeDirectoryAsyncClient dataLakeDirectoryAsyncClient; DataLakeDirectoryClient(DataLakeDirectoryAsyncClient dataLakeDirectoryAsyncClient, BlockBlobClient blockBlobClient, @@ -1153,10 +1153,10 @@ public PagedIterable listPaths() { public PagedIterable listPaths(boolean recursive, boolean userPrincipleNameReturned, Integer maxResults, Duration timeout) { BiFunction> retriever = (marker, pageSize) -> { - Callable> operation = () -> - this.fileSystemDataLakeStorage.getFileSystems().listPathsWithResponse(recursive, null, null, marker, - getDirectoryPath(), pageSize == null ? maxResults : pageSize, userPrincipleNameReturned, - Context.NONE); + Callable> operation + = wrapServiceCallWithExceptionMapping(() -> this.fileSystemDataLakeStorage.getFileSystems() + .listPathsWithResponse(recursive, null, null, marker, getDirectoryPath(), + pageSize == null ? maxResults : pageSize, userPrincipleNameReturned, Context.NONE)); ResponseBase response = StorageImplUtils.sendRequest(operation, timeout, DataLakeStorageException.class); diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java index c73e200219ac..1a1f6a336af1 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java @@ -1178,7 +1178,8 @@ Mono> appendWithResponse(Flux data, long fileOffset, return this.dataLakeStorage.getPaths().appendDataNoCustomHeadersWithResponseAsync( data, fileOffset, null, length, null, appendOptions.getLeaseAction(), leaseDuration, appendOptions.getProposedLeaseId(), null, appendOptions.isFlush(), headers, leaseAccessConditions, - getCpkInfo(), context); + getCpkInfo(), context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException); } /** @@ -1367,6 +1368,7 @@ Mono> flushWithResponse(long position, DataLakeFileFlushOptio return this.dataLakeStorage.getPaths().flushDataWithResponseAsync(null, position, flushOptions.isUncommittedDataRetained(), flushOptions.isClose(), (long) 0, flushOptions.getLeaseAction(), leaseDuration, flushOptions.getProposedLeaseId(), null, httpHeaders, lac, mac, getCpkInfo(), context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .map(response -> new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), response.getDeserializedHeaders().getLastModified(), response.getDeserializedHeaders().isXMsRequestServerEncrypted() != null, @@ -1847,7 +1849,8 @@ Mono> scheduleDeletionWithResponse(FileScheduleDeletionOptions op pathExpiryOptions = PathExpiryOptions.NEVER_EXPIRE; } return this.blobDataLakeStorage.getPaths() - .setExpiryNoCustomHeadersWithResponseAsync(pathExpiryOptions, null, null, expiresOn, context); + .setExpiryNoCustomHeadersWithResponseAsync(pathExpiryOptions, null, null, expiresOn, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java index 431ebf4eefff..6814d1c8254c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java @@ -76,6 +76,8 @@ import java.util.Set; import java.util.concurrent.Callable; +import static com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils.wrapServiceCallWithExceptionMapping; + /** * This class provides a client that contains file operations for Azure Storage Data Lake. Operations provided by * this client include creating a file, deleting a file, renaming a file, setting metadata and @@ -1684,9 +1686,9 @@ public Response scheduleDeletionWithResponse(FileScheduleDeletionOptions o expiresOn = null; } - Callable> operation = () -> + Callable> operation = wrapServiceCallWithExceptionMapping(() -> this.blobDataLakeStorage.getPaths().setExpiryWithResponse(pathExpiryOptions, null, null, expiresOn, - finalContext); + finalContext)); ResponseBase response = StorageImplUtils.sendRequest(operation, timeout, DataLakeStorageException.class); diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java index a56784f0840a..b0f83bae862e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java @@ -38,6 +38,7 @@ import com.azure.storage.file.datalake.implementation.models.PathResourceType; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.DataLakeSasImplUtil; +import com.azure.storage.file.datalake.implementation.util.ModelHelper; import com.azure.storage.file.datalake.implementation.util.TransformUtils; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeSignedIdentifier; @@ -779,7 +780,8 @@ private Mono> listPathsSegme return StorageImplUtils.applyOptionalTimeout( this.azureDataLakeStorage.getFileSystems().listPathsWithResponseAsync(options.isRecursive(), null, null, marker, options.getPath(), options.getMaxResults(), - options.isUserPrincipalNameReturned(), Context.NONE), timeout); + options.isUserPrincipalNameReturned(), Context.NONE), timeout) + .onErrorMap(ModelHelper::mapToDataLakeStorageException); } /** @@ -870,7 +872,8 @@ private Mono> listDeletedPaths(String marker, Int return StorageImplUtils.applyOptionalTimeout( this.blobDataLakeStorageFs.getFileSystems().listBlobHierarchySegmentWithResponseAsync( prefix, null, marker, maxResults, - null, ListBlobsShowOnly.DELETED, null, null, context), timeout); + null, ListBlobsShowOnly.DELETED, null, null, context), timeout) + .onErrorMap(ModelHelper::mapToDataLakeStorageException); } /** @@ -1670,6 +1673,7 @@ Mono> undeletePathWithResponse(String deletedP // Initial rest call return blobDataLakeStoragePath.getPaths().undeleteWithResponseAsync(null, String.format("?%s=%s", Constants.UrlConstants.DELETIONID_QUERY_PARAMETER, deletionId), null, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .onErrorMap(DataLakeImplUtils::transformBlobStorageException) // Construct the new client and final response from the undelete + getProperties responses .map(response -> { diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java index 07098117e01b..562a04eb215f 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java @@ -64,6 +64,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import static com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils.wrapServiceCallWithExceptionMapping; + /** * Client to a file system. It may only be instantiated through a {@link DataLakeFileSystemClientBuilder} or via the * method {@link DataLakeServiceClient#getFileSystemClient(String)}. This class does not hold any state about a @@ -722,9 +724,10 @@ public PagedIterable listPaths(ListPathsOptions options, Duration time String path = finalOptions.getPath(); BiFunction> pageRetriever = (continuation, pageSize) -> { - Callable> operation = () -> - this.azureDataLakeStorage.getFileSystems().listPathsWithResponse(recursive, null, null, continuation, - path, pageSize == null ? maxResults : pageSize, upn, Context.NONE); + Callable> operation + = wrapServiceCallWithExceptionMapping(() -> this.azureDataLakeStorage.getFileSystems() + .listPathsWithResponse(recursive, null, null, continuation, path, + pageSize == null ? maxResults : pageSize, upn, Context.NONE)); ResponseBase response = StorageImplUtils.sendRequest(operation, timeout, DataLakeStorageException.class); @@ -797,8 +800,9 @@ public PagedIterable listDeletedPaths(String prefix, Duration t Context context) { BiFunction> retriever = (marker, pageSize) -> { Callable> operation = - () -> this.blobDataLakeStorageFs.getFileSystems().listBlobHierarchySegmentWithResponse(prefix, null, - marker, pageSize, null, ListBlobsShowOnly.DELETED, null, null, context); + wrapServiceCallWithExceptionMapping(() -> this.blobDataLakeStorageFs.getFileSystems() + .listBlobHierarchySegmentWithResponse(prefix, null, marker, pageSize, null, + ListBlobsShowOnly.DELETED, null, null, context)); ResponseBase response = StorageImplUtils.sendRequest(operation, timeout, DataLakeStorageException.class); @@ -1562,9 +1566,11 @@ public Response undeletePathWithResponse(String deletedPath, .buildClient(); // Initial rest call - Callable> operation = () -> - blobDataLakeStoragePath.getPaths().undeleteWithResponse(null, String.format("?%s=%s", - Constants.UrlConstants.DELETIONID_QUERY_PARAMETER, deletionId), null, finalContext); + Callable> operation = wrapServiceCallWithExceptionMapping(() -> + blobDataLakeStoragePath.getPaths() + .undeleteWithResponse(null, + String.format("?%s=%s", Constants.UrlConstants.DELETIONID_QUERY_PARAMETER, deletionId), null, + finalContext)); ResponseBase response = StorageImplUtils.sendRequest(operation, timeout, DataLakeStorageException.class); diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java index f5ad635bf6a1..ae65b5303514 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java @@ -28,6 +28,7 @@ import com.azure.storage.common.implementation.StorageImplUtils; import com.azure.storage.file.datalake.implementation.AzureDataLakeStorageRestAPIImpl; import com.azure.storage.file.datalake.implementation.AzureDataLakeStorageRestAPIImplBuilder; +import com.azure.storage.file.datalake.implementation.models.CpkInfo; import com.azure.storage.file.datalake.implementation.models.LeaseAccessConditions; import com.azure.storage.file.datalake.implementation.models.ModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.models.PathExpiryOptions; @@ -47,7 +48,6 @@ import com.azure.storage.file.datalake.models.AccessControlChangeFailure; import com.azure.storage.file.datalake.models.AccessControlChangeResult; import com.azure.storage.file.datalake.models.AccessControlChanges; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; @@ -468,6 +468,7 @@ Mono> createWithResponse(DataLakePathCreateOptions options, C options.getProposedLeaseId(), leaseDuration, expiryOptions, expiresOnString, options.getEncryptionContext(), options.getPathHttpHeaders(), lac, mac, null, customerProvidedKey, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .map(response -> new SimpleResponse<>(response, new PathInfo( response.getDeserializedHeaders().getETag(), response.getDeserializedHeaders().getLastModified(), @@ -551,6 +552,7 @@ Mono> createIfNotExistsWithResponse(DataLakePathCreateOptions options.setRequestConditions(new DataLakeRequestConditions() .setIfNoneMatch(Constants.HeaderConstants.ETAG_WILDCARD)); return createWithResponse(options, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .onErrorResume(t -> t instanceof DataLakeStorageException && ((DataLakeStorageException) t).getStatusCode() == 409, t -> { @@ -590,6 +592,7 @@ Mono> deleteWithResponse(Boolean recursive, DataLakeRequestCondit Context finalContext = context == null ? Context.NONE : context; return this.dataLakeStorage.getPaths() .deleteNoCustomHeadersWithResponseAsync(null, null, recursive, null, paginated, lac, mac, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .expand(resp -> { String continuation = resp.getHeaders().getValue(Transforms.X_MS_CONTINUATION); if (continuation != null && !continuation.isEmpty()) { @@ -672,6 +675,7 @@ Mono> deleteIfExistsWithResponse(DataLakePathDeleteOptions opt try { options = options == null ? new DataLakePathDeleteOptions() : options; return deleteWithResponse(options.getIsRecursive(), options.getRequestConditions(), context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .map(response -> (Response) new SimpleResponse<>(response, true)) .onErrorResume(t -> t instanceof DataLakeStorageException && ((DataLakeStorageException) t).getStatusCode() == 404, @@ -1104,6 +1108,7 @@ Mono> setAccessControlWithResponse(List new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), response.getDeserializedHeaders().getLastModified()))); } @@ -1397,6 +1402,7 @@ Mono> setAccessControlRecursiveWithResponse( return this.dataLakeStorage.getPaths().setAccessControlRecursiveWithResponseAsync(mode, null, continuationToken, continueOnFailure, batchSize, accessControlList, null, contextFinal) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .onErrorMap(e -> { if (e instanceof DataLakeStorageException) { return LOGGER.logExceptionAsError(ModelHelper.changeAclRequestFailed((DataLakeStorageException) e, @@ -1510,6 +1516,7 @@ Determine if we are finished either because there is no new continuation (failur // If we're not finished, issue another request return this.dataLakeStorage.getPaths().setAccessControlRecursiveWithResponseAsync(mode, null, effectiveNextToken, continueOnFailure, batchSize, accessControlStr, null, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .onErrorMap(e -> { if (e instanceof DataLakeStorageException) { return LOGGER.logExceptionAsError(ModelHelper.changeAclRequestFailed((DataLakeStorageException) e, @@ -1598,6 +1605,7 @@ Mono> getAccessControlWithResponse(boolean userPrinc context = context == null ? Context.NONE : context; return this.dataLakeStorage.getPaths().getPropertiesWithResponseAsync(null, null, PathGetPropertiesAction.GET_ACCESS_CONTROL, userPrincipalNameReturned, lac, mac, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .map(response -> new SimpleResponse<>(response, new PathAccessControl( PathAccessControlEntry.parseList(response.getDeserializedHeaders().getXMsAcl()), PathPermissions.parseSymbolic(response.getDeserializedHeaders().getXMsPermissions()), @@ -1665,6 +1673,7 @@ Mono> renameWithResponse(String destinationFil null /* expiryOptions */, null /* expiresOn */, null /* encryptionContext */, null /* pathHttpHeaders */, destLac, destMac, sourceConditions, null /* cpkInfo */, context) + .onErrorMap(ModelHelper::mapToDataLakeStorageException) .map(response -> new SimpleResponse<>(response, dataLakePathAsyncClient)); } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java index e4b5c21022af..e6a8f35e1159 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java @@ -38,8 +38,8 @@ import com.azure.storage.file.datalake.implementation.models.PathsGetPropertiesHeaders; import com.azure.storage.file.datalake.implementation.models.PathsSetAccessControlHeaders; import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; -import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.BuilderHelper; +import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.DataLakeSasImplUtil; import com.azure.storage.file.datalake.implementation.util.ModelHelper; import com.azure.storage.file.datalake.models.AccessControlChangeResult; @@ -72,6 +72,7 @@ import java.util.function.Consumer; import static com.azure.storage.common.implementation.StorageImplUtils.sendRequest; +import static com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils.wrapServiceCallWithExceptionMapping; /** * This class provides a client that contains all operations that apply to any path object. @@ -434,13 +435,13 @@ public Response createWithResponse(DataLakePathCreateOptions options, Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> + Callable> operation = wrapServiceCallWithExceptionMapping(() -> this.dataLakeStorage.getPaths().createWithResponse(null, null, pathResourceType, null, null, null, finalOptions.getSourceLeaseId(), ModelHelper.buildMetadataString(finalOptions.getMetadata()), finalOptions.getPermissions(), finalOptions.getUmask(), finalOptions.getOwner(), finalOptions.getGroup(), acl, finalOptions.getProposedLeaseId(), leaseDuration, expiryOptions, finalExpiresOnString, finalOptions.getEncryptionContext(), finalOptions.getPathHttpHeaders(), lac, mac, - null, customerProvidedKey, finalContext); + null, customerProvidedKey, finalContext)); ResponseBase response = sendRequest(operation, timeout, DataLakeStorageException.class); @@ -637,7 +638,7 @@ Response deleteWithResponse(Boolean recursive, DataLakeRequestConditions r Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> { + Callable> operation = wrapServiceCallWithExceptionMapping(() -> { String continuation = null; ResponseBase lastResponse; do { @@ -647,7 +648,7 @@ Response deleteWithResponse(Boolean recursive, DataLakeRequestConditions r } while (continuation != null && !continuation.isEmpty()); return lastResponse; - }; + }); ResponseBase response = sendRequest(operation, timeout, DataLakeStorageException.class); return new SimpleResponse<>(response, null); @@ -864,9 +865,10 @@ Response setAccessControlWithResponse(List acc Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.dataLakeStorage.getPaths() + Callable> operation + = wrapServiceCallWithExceptionMapping(() -> this.dataLakeStorage.getPaths() .setAccessControlWithResponse(null, owner, group, permissionsString, accessControlListString, null, lac, - mac, finalContext); + mac, finalContext)); ResponseBase response = sendRequest(operation, timeout, DataLakeStorageException.class); @@ -1369,8 +1371,8 @@ public Response getAccessControlWithResponse(boolean userPrin Context finalContext = context == null ? Context.NONE : context; Callable> operation = - () -> this.dataLakeStorage.getPaths().getPropertiesWithResponse(null, null, - PathGetPropertiesAction.GET_ACCESS_CONTROL, userPrincipalNameReturned, lac, mac, finalContext); + wrapServiceCallWithExceptionMapping(() -> this.dataLakeStorage.getPaths().getPropertiesWithResponse(null, + null, PathGetPropertiesAction.GET_ACCESS_CONTROL, userPrincipalNameReturned, lac, mac, finalContext)); ResponseBase response = sendRequest(operation, timeout, DataLakeStorageException.class); @@ -1417,14 +1419,14 @@ Response renameWithResponseWithTimeout(String destinationFil } String finalRenameSource = signature != null ? renameSource + "?" + signature : renameSource; - Callable> operation = () -> + Callable> operation = wrapServiceCallWithExceptionMapping(() -> dataLakePathClient.dataLakeStorage.getPaths().createWithResponse(null /* request id */, null /* timeout */, null /* pathResourceType */, null /* continuation */, PathRenameMode.LEGACY, finalRenameSource, finalSourceRequestConditions.getLeaseId(), null /* properties */, null /* permissions */, null /* umask */, null /* owner */, null /* group */, null /* acl */, null /* proposedLeaseId */, null /* leaseDuration */, null /* expiryOptions */, null /* expiresOn */, null /* encryptionContext */, null /* pathHttpHeaders */, destLac, destMac, sourceConditions, - null /* cpkInfo */, finalContext); + null /* cpkInfo */, finalContext)); ResponseBase response = sendRequest(operation, timeout, DataLakeStorageException.class); diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java index 1f0d58d35c04..8487d8f3ba6b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java @@ -22,8 +22,6 @@ import com.azure.storage.blob.models.BlobContainerItem; import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.sas.AccountSasSignatureValues; -import com.azure.storage.file.datalake.implementation.AzureDataLakeStorageRestAPIImpl; -import com.azure.storage.file.datalake.implementation.AzureDataLakeStorageRestAPIImplBuilder; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeServiceProperties; @@ -64,7 +62,8 @@ public class DataLakeServiceAsyncClient { private static final ClientLogger LOGGER = new ClientLogger(DataLakeServiceAsyncClient.class); - private final AzureDataLakeStorageRestAPIImpl azureDataLakeStorage; + private final HttpPipeline pipeline; + private final String url; private final String accountName; private final DataLakeServiceVersion serviceVersion; @@ -87,11 +86,8 @@ public class DataLakeServiceAsyncClient { DataLakeServiceAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, String accountName, BlobServiceAsyncClient blobServiceAsyncClient, AzureSasCredential sasToken, boolean isTokenCredentialAuthenticated) { - this.azureDataLakeStorage = new AzureDataLakeStorageRestAPIImplBuilder() - .pipeline(pipeline) - .url(url) - .version(serviceVersion.getVersion()) - .buildClient(); + this.pipeline = pipeline; + this.url = url; this.serviceVersion = serviceVersion; this.accountName = accountName; @@ -135,7 +131,7 @@ public DataLakeFileSystemAsyncClient getFileSystemAsyncClient(String fileSystemN * @return The pipeline. */ public HttpPipeline getHttpPipeline() { - return azureDataLakeStorage.getHttpPipeline(); + return pipeline; } /** @@ -255,7 +251,7 @@ public Mono> deleteFileSystemWithResponse(String fileSystemName, * @return the URL. */ public String getAccountUrl() { - return azureDataLakeStorage.getUrl(); + return url; } /** diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java index 34b695b7a384..4952cf2fb300 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java @@ -19,8 +19,6 @@ import com.azure.storage.blob.models.BlobServiceProperties; import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.sas.AccountSasSignatureValues; -import com.azure.storage.file.datalake.implementation.AzureDataLakeStorageRestAPIImpl; -import com.azure.storage.file.datalake.implementation.AzureDataLakeStorageRestAPIImplBuilder; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeServiceProperties; @@ -53,7 +51,8 @@ public class DataLakeServiceClient { private static final ClientLogger LOGGER = new ClientLogger(DataLakeServiceClient.class); private final DataLakeServiceAsyncClient dataLakeServiceAsyncClient; final BlobServiceClient blobServiceClient; - private final AzureDataLakeStorageRestAPIImpl azureDataLakeStorage; + private final HttpPipeline pipeline; + private final String url; private final String accountName; private final DataLakeServiceVersion serviceVersion; private final AzureSasCredential sasToken; @@ -70,11 +69,8 @@ public class DataLakeServiceClient { AzureSasCredential sasToken, boolean isTokenCredentialAuthenticated) { this.dataLakeServiceAsyncClient = dataLakeServiceAsyncClient; this.blobServiceClient = blobServiceClient; - this.azureDataLakeStorage = new AzureDataLakeStorageRestAPIImplBuilder() - .pipeline(pipeline) - .url(url) - .version(serviceVersion.getVersion()) - .buildClient(); + this.pipeline = pipeline; + this.url = url; this.serviceVersion = serviceVersion; this.accountName = accountName; this.sasToken = sasToken; @@ -112,7 +108,7 @@ public DataLakeFileSystemClient getFileSystemClient(String fileSystemName) { * @return The pipeline. */ public HttpPipeline getHttpPipeline() { - return azureDataLakeStorage.getHttpPipeline(); + return pipeline; } /** @@ -240,7 +236,7 @@ public Response deleteFileSystemWithResponse(String fileSystemName, * @return the URL. */ public String getAccountUrl() { - return azureDataLakeStorage.getUrl(); + return url; } /** diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java index c7c4f223217f..60671f979fad 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java @@ -25,6 +25,7 @@ import com.azure.core.util.Context; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; +import com.azure.storage.file.datalake.implementation.models.DataLakeStorageExceptionInternal; import com.azure.storage.file.datalake.implementation.models.FileSystemsCreateHeaders; import com.azure.storage.file.datalake.implementation.models.FileSystemsDeleteHeaders; import com.azure.storage.file.datalake.implementation.models.FileSystemsGetPropertiesHeaders; @@ -36,7 +37,6 @@ import com.azure.storage.file.datalake.implementation.models.ListBlobsShowOnly; import com.azure.storage.file.datalake.implementation.models.ModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.models.PathList; -import com.azure.storage.file.datalake.models.DataLakeStorageException; import java.time.OffsetDateTime; import java.util.List; import java.util.Objects; @@ -77,7 +77,7 @@ public final class FileSystemsImpl { public interface FileSystemsService { @Put("/{filesystem}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -86,7 +86,7 @@ Mono> create(@HostParam("url") Stri @Put("/{filesystem}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -95,7 +95,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{filesystem}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase createSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -104,7 +104,7 @@ ResponseBase createSync(@HostParam("url") String @Put("/{filesystem}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response createNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -113,7 +113,7 @@ Response createNoCustomHeadersSync(@HostParam("url") String url, @Patch("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setProperties(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -124,7 +124,7 @@ Mono> setProperties(@HostPar @Patch("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -135,7 +135,7 @@ Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @Patch("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase setPropertiesSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -146,7 +146,7 @@ ResponseBase setPropertiesSync(@HostParam @Patch("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -157,7 +157,7 @@ Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Head("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -165,7 +165,7 @@ Mono> getProperties(@HostPar @Head("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -173,7 +173,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Head("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase getPropertiesSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -181,7 +181,7 @@ ResponseBase getPropertiesSync(@HostParam @Head("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -189,7 +189,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Delete("/{filesystem}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -200,7 +200,7 @@ Mono> delete(@HostParam("url") Stri @Delete("/{filesystem}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -211,7 +211,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{filesystem}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -222,7 +222,7 @@ ResponseBase deleteSync(@HostParam("url") String @Delete("/{filesystem}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -233,7 +233,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> listPaths(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -244,7 +244,7 @@ Mono> listPaths(@HostParam(" @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> listPathsNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -255,7 +255,7 @@ Mono> listPathsNoCustomHeaders(@HostParam("url") String url, @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase listPathsSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -266,7 +266,7 @@ ResponseBase listPathsSync(@HostParam("ur @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response listPathsNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -277,7 +277,7 @@ Response listPathsNoCustomHeadersSync(@HostParam("url") String url, @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> listBlobHierarchySegment(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -290,7 +290,7 @@ Response listPathsNoCustomHeadersSync(@HostParam("url") String url, @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> listBlobHierarchySegmentNoCustomHeaders( @HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @@ -302,7 +302,7 @@ Mono> listBlobHierarchySegmentNoCust @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase listBlobHierarchySegmentSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -315,7 +315,7 @@ Mono> listBlobHierarchySegmentNoCust @Get("/{filesystem}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response listBlobHierarchySegmentNoCustomHeadersSync( @HostParam("url") String url, @PathParam("filesystem") String fileSystem, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @@ -344,7 +344,7 @@ Response listBlobHierarchySegmentNoCustomHead * merge new and existing properties, first get all existing properties and the current E-Tag, then make a * conditional request with the E-Tag and include values for all properties. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -375,7 +375,7 @@ public Mono> createWithResponseAsyn * conditional request with the E-Tag and include values for all properties. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -405,7 +405,7 @@ public Mono> createWithResponseAsyn * merge new and existing properties, first get all existing properties and the current E-Tag, then make a * conditional request with the E-Tag and include values for all properties. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -433,7 +433,7 @@ public Mono createAsync(String requestId, Integer timeout, String properti * conditional request with the E-Tag and include values for all properties. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -460,7 +460,7 @@ public Mono createAsync(String requestId, Integer timeout, String properti * merge new and existing properties, first get all existing properties and the current E-Tag, then make a * conditional request with the E-Tag and include values for all properties. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -492,7 +492,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String reques * conditional request with the E-Tag and include values for all properties. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -523,7 +523,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String reques * conditional request with the E-Tag and include values for all properties. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -553,7 +553,7 @@ public ResponseBase createWithResponse(String re * merge new and existing properties, first get all existing properties and the current E-Tag, then make a * conditional request with the E-Tag and include values for all properties. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -580,7 +580,7 @@ public void create(String requestId, Integer timeout, String properties) { * conditional request with the E-Tag and include values for all properties. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -612,7 +612,7 @@ public Response createNoCustomHeadersWithResponse(String requestId, Intege * conditional request with the E-Tag and include values for all properties. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -660,7 +660,7 @@ public Mono> setPropertiesWi * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -707,7 +707,7 @@ public Mono> setPropertiesWi * conditional request with the E-Tag and include values for all properties. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -739,7 +739,7 @@ public Mono setPropertiesAsync(String requestId, Integer timeout, String p * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -770,7 +770,7 @@ public Mono setPropertiesAsync(String requestId, Integer timeout, String p * conditional request with the E-Tag and include values for all properties. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -818,7 +818,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync(String * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -866,7 +866,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync(String * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -913,7 +913,7 @@ public ResponseBase setPropertiesWithResp * conditional request with the E-Tag and include values for all properties. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -943,7 +943,7 @@ public void setProperties(String requestId, Integer timeout, String properties, * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -981,7 +981,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(String requestId, * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1005,7 +1005,7 @@ public Mono> getPropertiesWi * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1028,7 +1028,7 @@ public Mono> getPropertiesWi * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1049,7 +1049,7 @@ public Mono getPropertiesAsync(String requestId, Integer timeout) { * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1069,7 +1069,7 @@ public Mono getPropertiesAsync(String requestId, Integer timeout, Context * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1093,7 +1093,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1117,7 +1117,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1140,7 +1140,7 @@ public ResponseBase getPropertiesWithResp * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1160,7 +1160,7 @@ public void getProperties(String requestId, Integer timeout) { * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1190,7 +1190,7 @@ public Response getPropertiesNoCustomHeadersWithResponse(String requestId, * Timeouts for Blob Service Operations.</a>. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1237,7 +1237,7 @@ public Mono> deleteWithResponseAsyn * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1282,7 +1282,7 @@ public Mono> deleteWithResponseAsyn * Timeouts for Blob Service Operations.</a>. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1312,7 +1312,7 @@ public Mono deleteAsync(String requestId, Integer timeout, * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1342,7 +1342,7 @@ public Mono deleteAsync(String requestId, Integer timeout, ModifiedAccessC * Timeouts for Blob Service Operations.</a>. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1389,7 +1389,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String reques * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1436,7 +1436,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String reques * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1482,7 +1482,7 @@ public ResponseBase deleteWithResponse(String re * Timeouts for Blob Service Operations.</a>. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1510,7 +1510,7 @@ public void delete(String requestId, Integer timeout, ModifiedAccessConditions m * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1562,7 +1562,7 @@ public Response deleteNoCustomHeadersWithResponse(String requestId, Intege * Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not * translated because they do not have unique friendly names. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1601,7 +1601,7 @@ public Mono> listPathsWithRe * translated because they do not have unique friendly names. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1640,7 +1640,7 @@ public Mono> listPathsWithRe * Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not * translated because they do not have unique friendly names. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1677,7 +1677,7 @@ public Mono listPathsAsync(boolean recursive, String requestId, Intege * translated because they do not have unique friendly names. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1713,7 +1713,7 @@ public Mono listPathsAsync(boolean recursive, String requestId, Intege * Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not * translated because they do not have unique friendly names. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -1752,7 +1752,7 @@ public Mono> listPathsNoCustomHeadersWithResponseAsync(boolea * translated because they do not have unique friendly names. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -1791,7 +1791,7 @@ public Mono> listPathsNoCustomHeadersWithResponseAsync(boolea * translated because they do not have unique friendly names. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase}. */ @@ -1830,7 +1830,7 @@ public ResponseBase listPathsWithResponse * Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not * translated because they do not have unique friendly names. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1867,7 +1867,7 @@ public PathList listPaths(boolean recursive, String requestId, Integer timeout, * translated because they do not have unique friendly names. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response}. */ @@ -1902,7 +1902,7 @@ public Response listPathsNoCustomHeadersWithResponse(boolean recursive * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1946,7 +1946,7 @@ public Response listPathsNoCustomHeadersWithResponse(boolean recursive * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1990,7 +1990,7 @@ public Response listPathsNoCustomHeadersWithResponse(boolean recursive * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs on successful completion of {@link Mono}. */ @@ -2025,7 +2025,7 @@ public Mono listBlobHierarchySegmentAsync(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs on successful completion of {@link Mono}. */ @@ -2059,7 +2059,7 @@ public Mono listBlobHierarchySegmentAsync(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response} on successful completion of {@link Mono}. */ @@ -2103,7 +2103,7 @@ public Mono> listBlobHierarchySegmen * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response} on successful completion of {@link Mono}. */ @@ -2147,7 +2147,7 @@ public Mono> listBlobHierarchySegmen * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link ResponseBase}. */ @@ -2191,7 +2191,7 @@ public Mono> listBlobHierarchySegmen * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs. */ @@ -2226,7 +2226,7 @@ public ListBlobsHierarchySegmentResponse listBlobHierarchySegment(String prefix, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of blobs along with {@link Response}. */ diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java index 5ad03a1386b8..a93b48b5fcdd 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java @@ -31,6 +31,7 @@ import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; import com.azure.storage.file.datalake.implementation.models.CpkInfo; +import com.azure.storage.file.datalake.implementation.models.DataLakeStorageExceptionInternal; import com.azure.storage.file.datalake.implementation.models.LeaseAccessConditions; import com.azure.storage.file.datalake.implementation.models.ModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.models.PathExpiryOptions; @@ -54,7 +55,6 @@ import com.azure.storage.file.datalake.implementation.models.PathUpdateAction; import com.azure.storage.file.datalake.implementation.models.SetAccessControlRecursiveResponse; import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; -import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.EncryptionAlgorithmType; import com.azure.storage.file.datalake.models.LeaseAction; import com.azure.storage.file.datalake.models.PathHttpHeaders; @@ -97,7 +97,7 @@ public final class PathsImpl { public interface PathsService { @Put("/{filesystem}/{path}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -132,7 +132,7 @@ Mono> create(@HostParam("url") String url @Put("/{filesystem}/{path}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -167,7 +167,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{filesystem}/{path}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase createSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -202,7 +202,7 @@ ResponseBase createSync(@HostParam("url") String url, @Put("/{filesystem}/{path}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response createNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -237,7 +237,7 @@ Response createNoCustomHeadersSync(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> update(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -263,7 +263,7 @@ Mono> update @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> updateNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -289,7 +289,7 @@ Mono> updateNoCustomHeaders(@HostPar @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> update(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -315,7 +315,7 @@ Mono> update @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> updateNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -341,7 +341,7 @@ Mono> updateNoCustomHeaders(@HostPar @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase updateSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -367,7 +367,7 @@ ResponseBase updateSync(@ @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response updateNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -393,7 +393,7 @@ Response updateNoCustomHeadersSync(@HostParam @Post("/{filesystem}/{path}") @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> lease(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -409,7 +409,7 @@ Mono> lease(@HostParam("url") String url, @Post("/{filesystem}/{path}") @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> leaseNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -425,7 +425,7 @@ Mono> leaseNoCustomHeaders(@HostParam("url") String url, @Post("/{filesystem}/{path}") @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase leaseSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -441,7 +441,7 @@ ResponseBase leaseSync(@HostParam("url") String url, @Post("/{filesystem}/{path}") @ExpectedResponses({ 200, 201, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response leaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -457,7 +457,7 @@ Response leaseNoCustomHeadersSync(@HostParam("url") String url, @Get("/{filesystem}/{path}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono>> read(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -474,7 +474,7 @@ Mono>> read(@HostParam("url") St @Get("/{filesystem}/{path}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono readNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -491,7 +491,7 @@ Mono readNoCustomHeaders(@HostParam("url") String url, @Get("/{filesystem}/{path}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase readSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -508,7 +508,7 @@ ResponseBase readSync(@HostParam("url") String ur @Get("/{filesystem}/{path}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response readNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -525,7 +525,7 @@ Response readNoCustomHeadersSync(@HostParam("url") String url, @Head("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -538,7 +538,7 @@ Mono> getProperties(@HostParam("ur @Head("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -551,7 +551,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Head("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase getPropertiesSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -564,7 +564,7 @@ ResponseBase getPropertiesSync(@HostParam("url" @Head("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -577,7 +577,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Delete("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -590,7 +590,7 @@ Mono> delete(@HostParam("url") String url @Delete("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -603,7 +603,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -616,7 +616,7 @@ ResponseBase deleteSync(@HostParam("url") String url, @Delete("/{filesystem}/{path}") @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @@ -629,7 +629,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setAccessControl(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -644,7 +644,7 @@ Mono> setAccessControl(@HostPar @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setAccessControlNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -659,7 +659,7 @@ Mono> setAccessControlNoCustomHeaders(@HostParam("url") String ur @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase setAccessControlSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -674,7 +674,7 @@ ResponseBase setAccessControlSync(@HostParam @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response setAccessControlNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -689,7 +689,7 @@ Response setAccessControlNoCustomHeadersSync(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setAccessControlRecursive(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @@ -701,7 +701,7 @@ Response setAccessControlNoCustomHeadersSync(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setAccessControlRecursiveNoCustomHeaders( @HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -712,7 +712,7 @@ Mono> setAccessControlRecursiveNoCus @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase setAccessControlRecursiveSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @@ -724,7 +724,7 @@ Mono> setAccessControlRecursiveNoCus @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response setAccessControlRecursiveNoCustomHeadersSync( @HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -735,7 +735,7 @@ Response setAccessControlRecursiveNoCustomHea @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> flushData(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -761,7 +761,7 @@ Mono> flushData(@HostParam("url") Stri @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> flushDataNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -787,7 +787,7 @@ Mono> flushDataNoCustomHeaders(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase flushDataSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -813,7 +813,7 @@ ResponseBase flushDataSync(@HostParam("url") String @Patch("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response flushDataNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("timeout") Integer timeout, @@ -839,7 +839,7 @@ Response flushDataNoCustomHeadersSync(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> appendData(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("position") Long position, @@ -858,7 +858,7 @@ Mono> appendData(@HostParam("url") St @Patch("/{filesystem}/{path}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> appendDataNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("position") Long position, @@ -877,7 +877,7 @@ Mono> appendDataNoCustomHeaders(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> appendData(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("position") Long position, @@ -896,7 +896,7 @@ Mono> appendData(@HostParam("url") St @Patch("/{filesystem}/{path}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> appendDataNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("position") Long position, @@ -915,7 +915,7 @@ Mono> appendDataNoCustomHeaders(@HostParam("url") String url, @Patch("/{filesystem}/{path}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase appendDataSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("position") Long position, @@ -934,7 +934,7 @@ ResponseBase appendDataSync(@HostParam("url") Stri @Patch("/{filesystem}/{path}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response appendDataNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("action") String action, @QueryParam("position") Long position, @@ -953,7 +953,7 @@ Response appendDataNoCustomHeadersSync(@HostParam("url") String url, @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setExpiry(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -963,7 +963,7 @@ Mono> setExpiry(@HostParam("url") Stri @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> setExpiryNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -973,7 +973,7 @@ Mono> setExpiryNoCustomHeaders(@HostParam("url") String url, @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase setExpirySync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -983,7 +983,7 @@ ResponseBase setExpirySync(@HostParam("url") String @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response setExpiryNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -993,7 +993,7 @@ Response setExpiryNoCustomHeadersSync(@HostParam("url") String url, @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> undelete(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-undelete-source") String undeleteSource, @@ -1002,7 +1002,7 @@ Mono> undelete(@HostParam("url") String @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> undeleteNoCustomHeaders(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-undelete-source") String undeleteSource, @@ -1011,7 +1011,7 @@ Mono> undeleteNoCustomHeaders(@HostParam("url") String url, @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase undeleteSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-undelete-source") String undeleteSource, @@ -1020,7 +1020,7 @@ ResponseBase undeleteSync(@HostParam("url") String u @Put("/{filesystem}/{path}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response undeleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("filesystem") String fileSystem, @PathParam("path") String path, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-undelete-source") String undeleteSource, @@ -1090,7 +1090,7 @@ Response undeleteNoCustomHeadersSync(@HostParam("url") String url, * @param sourceModifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1268,7 +1268,7 @@ public Mono> createWithResponseAsync(Stri * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1445,7 +1445,7 @@ public Mono> createWithResponseAsync(Stri * @param sourceModifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1525,7 +1525,7 @@ public Mono createAsync(String requestId, Integer timeout, PathResourceTyp * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1604,7 +1604,7 @@ public Mono createAsync(String requestId, Integer timeout, PathResourceTyp * @param sourceModifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1783,7 +1783,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String reques * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1961,7 +1961,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String reques * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2138,7 +2138,7 @@ public ResponseBase createWithResponse(String requestI * @param sourceModifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2217,7 +2217,7 @@ public void create(String requestId, Integer timeout, PathResourceType resource, * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2406,7 +2406,7 @@ public Response createNoCustomHeadersWithResponse(String requestId, Intege * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2561,7 +2561,7 @@ public Mono> * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2714,7 +2714,7 @@ public Mono> * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -2806,7 +2806,7 @@ public Mono updateAsync(PathUpdateAction acti * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -2897,7 +2897,7 @@ public Mono updateAsync(PathUpdateAction acti * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -3052,7 +3052,7 @@ public Mono> updateNoCustomHeadersWi * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -3205,7 +3205,7 @@ public Mono> updateNoCustomHeadersWi * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3360,7 +3360,7 @@ public Mono> * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3513,7 +3513,7 @@ public Mono> * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -3605,7 +3605,7 @@ public Mono updateAsync(PathUpdateAction acti * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -3696,7 +3696,7 @@ public Mono updateAsync(PathUpdateAction acti * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -3851,7 +3851,7 @@ public Mono> updateNoCustomHeadersWi * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -4005,7 +4005,7 @@ public Mono> updateNoCustomHeadersWi * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase}. */ @@ -4158,7 +4158,7 @@ public ResponseBase updat * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -4248,7 +4248,7 @@ public SetAccessControlRecursiveResponse update(PathUpdateAction action, PathSet * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response}. */ @@ -4356,7 +4356,7 @@ public Response updateNoCustomHeadersWithResp * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4429,7 +4429,7 @@ public Mono> leaseWithResponseAsync(PathLe * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4502,7 +4502,7 @@ public Mono> leaseWithResponseAsync(PathLe * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4543,7 +4543,7 @@ public Mono leaseAsync(PathLeaseAction xMsLeaseAction, String requestId, I * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4583,7 +4583,7 @@ public Mono leaseAsync(PathLeaseAction xMsLeaseAction, String requestId, I * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4656,7 +4656,7 @@ public Mono> leaseNoCustomHeadersWithResponseAsync(PathLeaseActio * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4730,7 +4730,7 @@ public Mono> leaseNoCustomHeadersWithResponseAsync(PathLeaseActio * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4803,7 +4803,7 @@ public ResponseBase leaseWithResponse(PathLeaseAction x * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4843,7 +4843,7 @@ public void lease(PathLeaseAction xMsLeaseAction, String requestId, Integer time * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4910,7 +4910,7 @@ public Response leaseNoCustomHeadersWithResponse(PathLeaseAction xMsLeaseA * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4992,7 +4992,7 @@ public Mono>> readWithResponseAs * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5073,7 +5073,7 @@ public Mono>> readWithResponseAs * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -5108,7 +5108,7 @@ public Flux readAsync(String requestId, Integer timeout, String rang * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -5143,7 +5143,7 @@ public Flux readAsync(String requestId, Integer timeout, String rang * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -5225,7 +5225,7 @@ public Mono readNoCustomHeadersWithResponseAsync(String requestI * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -5307,7 +5307,7 @@ public Mono readNoCustomHeadersWithResponseAsync(String requestI * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase}. */ @@ -5388,7 +5388,7 @@ public ResponseBase readWithResponse(String reque * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -5423,7 +5423,7 @@ public InputStream read(String requestId, Integer timeout, String range, Boolean * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response}. */ @@ -5506,7 +5506,7 @@ public Response readNoCustomHeadersWithResponse(String requestId, I * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path along with {@link ResponseBase} on * successful completion of {@link Mono}. @@ -5575,7 +5575,7 @@ public Mono> getPropertiesWithResp * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path along with {@link ResponseBase} on * successful completion of {@link Mono}. @@ -5643,7 +5643,7 @@ public Mono> getPropertiesWithResp * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path on successful completion of * {@link Mono}. @@ -5680,7 +5680,7 @@ public Mono getPropertiesAsync(String requestId, Integer timeout, PathGetP * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path on successful completion of * {@link Mono}. @@ -5717,7 +5717,7 @@ public Mono getPropertiesAsync(String requestId, Integer timeout, PathGetP * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path along with {@link Response} on * successful completion of {@link Mono}. @@ -5786,7 +5786,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path along with {@link Response} on * successful completion of {@link Mono}. @@ -5855,7 +5855,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path along with {@link ResponseBase}. */ @@ -5922,7 +5922,7 @@ public ResponseBase getPropertiesWithResponse(S * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5957,7 +5957,7 @@ public void getProperties(String requestId, Integer timeout, PathGetPropertiesAc * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties returns all system and user defined properties for a path along with {@link Response}. */ @@ -6024,7 +6024,7 @@ public Response getPropertiesNoCustomHeadersWithResponse(String requestId, * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6092,7 +6092,7 @@ public Mono> deleteWithResponseAsync(Stri * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6159,7 +6159,7 @@ public Mono> deleteWithResponseAsync(Stri * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6196,7 +6196,7 @@ public Mono deleteAsync(String requestId, Integer timeout, Boolean recursi * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6232,7 +6232,7 @@ public Mono deleteAsync(String requestId, Integer timeout, Boolean recursi * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6301,7 +6301,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String reques * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6369,7 +6369,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String reques * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -6436,7 +6436,7 @@ public ResponseBase deleteWithResponse(String requestI * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6471,7 +6471,7 @@ public void delete(String requestId, Integer timeout, Boolean recursive, String * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -6534,7 +6534,7 @@ public Response deleteNoCustomHeadersWithResponse(String requestId, Intege * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6600,7 +6600,7 @@ public Mono> setAccessControlWi * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6665,7 +6665,7 @@ public Mono> setAccessControlWi * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6698,7 +6698,7 @@ public Mono setAccessControlAsync(Integer timeout, String owner, String gr * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6730,7 +6730,7 @@ public Mono setAccessControlAsync(Integer timeout, String owner, String gr * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6796,7 +6796,7 @@ public Mono> setAccessControlNoCustomHeadersWithResponseAsync(Int * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6861,7 +6861,7 @@ public Mono> setAccessControlNoCustomHeadersWithResponseAsync(Int * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -6925,7 +6925,7 @@ public ResponseBase setAccessControlWithResp * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6957,7 +6957,7 @@ public void setAccessControl(Integer timeout, String owner, String group, String * @param modifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -7026,7 +7026,7 @@ public Response setAccessControlNoCustomHeadersWithResponse(Integer timeou * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -7067,7 +7067,7 @@ public Response setAccessControlNoCustomHeadersWithResponse(Integer timeou * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -7107,7 +7107,7 @@ public Response setAccessControlNoCustomHeadersWithResponse(Integer timeou * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -7145,7 +7145,7 @@ public Mono setAccessControlRecursiveAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -7182,7 +7182,7 @@ public Mono setAccessControlRecursiveAsync( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -7223,7 +7223,7 @@ public Mono> setAccessControlRecursi * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -7264,7 +7264,7 @@ public Mono> setAccessControlRecursi * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase}. */ @@ -7304,7 +7304,7 @@ public Mono> setAccessControlRecursi * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -7341,7 +7341,7 @@ public SetAccessControlRecursiveResponse setAccessControlRecursive(PathSetAccess * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response}. */ @@ -7397,7 +7397,7 @@ public Response setAccessControlRecursiveNoCu * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -7534,7 +7534,7 @@ public Mono> flushDataWithResponseAsyn * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -7669,7 +7669,7 @@ public Mono> flushDataWithResponseAsyn * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -7725,7 +7725,7 @@ public Mono flushDataAsync(Integer timeout, Long position, Boolean retainU * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -7780,7 +7780,7 @@ public Mono flushDataAsync(Integer timeout, Long position, Boolean retainU * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -7917,7 +7917,7 @@ public Mono> flushDataNoCustomHeadersWithResponseAsync(Integer ti * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -8054,7 +8054,7 @@ public Mono> flushDataNoCustomHeadersWithResponseAsync(Integer ti * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -8189,7 +8189,7 @@ public ResponseBase flushDataWithResponse(Integer t * @param modifiedAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -8244,7 +8244,7 @@ public void flushData(Integer timeout, Long position, Boolean retainUncommittedD * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -8370,7 +8370,7 @@ public Response flushDataNoCustomHeadersWithResponse(Integer timeout, Long * @param leaseAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -8447,7 +8447,7 @@ public Mono> appendDataWithResponseAs * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -8522,7 +8522,7 @@ public Mono> appendDataWithResponseAs * @param leaseAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -8568,7 +8568,7 @@ public Mono appendDataAsync(Flux body, Long position, Integer * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -8613,7 +8613,7 @@ public Mono appendDataAsync(Flux body, Long position, Integer * @param leaseAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -8690,7 +8690,7 @@ public Mono> appendDataNoCustomHeadersWithResponseAsync(Flux> appendDataNoCustomHeadersWithResponseAsync(Flux> appendDataWithResponseAs * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -8918,7 +8918,7 @@ public Mono> appendDataWithResponseAs * @param leaseAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -8964,7 +8964,7 @@ public Mono appendDataAsync(BinaryData body, Long position, Integer timeou * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -9009,7 +9009,7 @@ public Mono appendDataAsync(BinaryData body, Long position, Integer timeou * @param leaseAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -9086,7 +9086,7 @@ public Mono> appendDataNoCustomHeadersWithResponseAsync(BinaryDat * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -9163,7 +9163,7 @@ public Mono> appendDataNoCustomHeadersWithResponseAsync(BinaryDat * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -9238,7 +9238,7 @@ public ResponseBase appendDataWithResponse(BinaryD * @param leaseAccessConditions Parameter group. * @param cpkInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -9283,7 +9283,7 @@ public void appendData(BinaryData body, Long position, Integer timeout, Long con * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -9339,7 +9339,7 @@ public Response appendDataNoCustomHeadersWithResponse(BinaryData body, Lon * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -9365,7 +9365,7 @@ public Mono> setExpiryWithResponseAsyn * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -9389,7 +9389,7 @@ public Mono> setExpiryWithResponseAsyn * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -9412,7 +9412,7 @@ public Mono setExpiryAsync(PathExpiryOptions expiryOptions, Integer timeou * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -9434,7 +9434,7 @@ public Mono setExpiryAsync(PathExpiryOptions expiryOptions, Integer timeou * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -9460,7 +9460,7 @@ public Mono> setExpiryNoCustomHeadersWithResponseAsync(PathExpiry * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -9486,7 +9486,7 @@ public Mono> setExpiryNoCustomHeadersWithResponseAsync(PathExpiry * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -9510,7 +9510,7 @@ public ResponseBase setExpiryWithResponse(PathExpir * analytics logs when storage analytics logging is enabled. * @param expiresOn The time to set the blob to expiry. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -9530,7 +9530,7 @@ public void setExpiry(PathExpiryOptions expiryOptions, Integer timeout, String r * @param expiresOn The time to set the blob to expiry. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -9555,7 +9555,7 @@ public Response setExpiryNoCustomHeadersWithResponse(PathExpiryOptions exp * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -9581,7 +9581,7 @@ public Mono> undeleteWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -9605,7 +9605,7 @@ public Mono> undeleteWithResponseAsync( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -9626,7 +9626,7 @@ public Mono undeleteAsync(Integer timeout, String undeleteSource, String r * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -9646,7 +9646,7 @@ public Mono undeleteAsync(Integer timeout, String undeleteSource, String r * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -9672,7 +9672,7 @@ public Mono> undeleteNoCustomHeadersWithResponseAsync(Integer tim * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -9697,7 +9697,7 @@ public Mono> undeleteNoCustomHeadersWithResponseAsync(Integer tim * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -9721,7 +9721,7 @@ public ResponseBase undeleteWithResponse(Integer tim * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -9741,7 +9741,7 @@ public void undelete(Integer timeout, String undeleteSource, String requestId) { * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java index 644a8a6099d8..aaf199beb2e1 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java @@ -23,10 +23,10 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.storage.file.datalake.implementation.models.DataLakeStorageExceptionInternal; import com.azure.storage.file.datalake.implementation.models.FileSystem; import com.azure.storage.file.datalake.implementation.models.FileSystemList; import com.azure.storage.file.datalake.implementation.models.ServicesListFileSystemsHeaders; -import com.azure.storage.file.datalake.models.DataLakeStorageException; import reactor.core.publisher.Mono; /** @@ -62,7 +62,7 @@ public final class ServicesImpl { public interface ServicesService { @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> listFileSystems(@HostParam("url") String url, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @@ -71,7 +71,7 @@ Mono> listFileSyste @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Mono> listFileSystemsNoCustomHeaders(@HostParam("url") String url, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @@ -80,7 +80,7 @@ Mono> listFileSystemsNoCustomHeaders(@HostParam("url") @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) ResponseBase listFileSystemsSync(@HostParam("url") String url, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @@ -89,7 +89,7 @@ ResponseBase listFileSystemsSync @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(DataLakeStorageException.class) + @UnexpectedResponseExceptionType(DataLakeStorageExceptionInternal.class) Response listFileSystemsNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @@ -115,7 +115,7 @@ Response listFileSystemsNoCustomHeadersSync(@HostParam("url") St * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -150,7 +150,7 @@ public Mono> listFileSystemsSinglePageAsync(String pre * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -184,7 +184,7 @@ public Mono> listFileSystemsSinglePageAsync(String pre * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedFlux}. */ @@ -214,7 +214,7 @@ public PagedFlux listFileSystemsAsync(String prefix, String continua * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedFlux}. */ @@ -243,7 +243,7 @@ public PagedFlux listFileSystemsAsync(String prefix, String continua * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -278,7 +278,7 @@ public Mono> listFileSystemsNoCustomHeadersSinglePageA * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -312,7 +312,7 @@ public Mono> listFileSystemsNoCustomHeadersSinglePageA * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedFlux}. */ @@ -342,7 +342,7 @@ public PagedFlux listFileSystemsNoCustomHeadersAsync(String prefix, * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedFlux}. */ @@ -371,7 +371,7 @@ public PagedFlux listFileSystemsNoCustomHeadersAsync(String prefix, * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse}. */ @@ -406,7 +406,7 @@ public PagedResponse listFileSystemsSinglePage(String prefix, String * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse}. */ @@ -440,7 +440,7 @@ public PagedResponse listFileSystemsSinglePage(String prefix, String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedIterable}. */ @@ -470,7 +470,7 @@ public PagedIterable listFileSystems(String prefix, String continuat * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedIterable}. */ @@ -499,7 +499,7 @@ public PagedIterable listFileSystems(String prefix, String continuat * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse}. */ @@ -533,7 +533,7 @@ public PagedResponse listFileSystemsNoCustomHeadersSinglePage(String * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse}. */ @@ -566,7 +566,7 @@ public PagedResponse listFileSystemsNoCustomHeadersSinglePage(String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting * Timeouts for Blob Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedIterable}. */ @@ -596,7 +596,7 @@ public PagedIterable listFileSystemsNoCustomHeaders(String prefix, S * Timeouts for Blob Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws DataLakeStorageException thrown if the request is rejected by server. + * @throws DataLakeStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the paginated response with {@link PagedIterable}. */ diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/DataLakeStorageError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/DataLakeStorageError.java new file mode 100644 index 000000000000..ce7626e0190d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/DataLakeStorageError.java @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.xml.XmlReader; +import com.azure.xml.XmlSerializable; +import com.azure.xml.XmlToken; +import com.azure.xml.XmlWriter; + +import javax.xml.namespace.QName; +import javax.xml.stream.XMLStreamException; +import java.io.IOException; + +/** + * Represents an error response returned by the Azure Storage DataLake service. + */ +public final class DataLakeStorageError + implements JsonSerializable, XmlSerializable { + private String code; + private String message; + private String queryParameterName; + private String queryParameterValue; + private String reason; + private String extendedErrorDetail; + + private DataLakeStorageError() { + } + + /** + * Gets the error code returned by the Azure Storage DataLake service. + * + * @return The error code. + */ + public String getCode() { + return code; + } + + /** + * Gets the error message returned by the Azure Storage DataLake service. + * + * @return The error message. + */ + public String getMessage() { + return message; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + return jsonWriter.writeStartObject("Error") + .writeStringField("Code", code) + .writeStringField("Message", this.message) + .writeStringField("QueryParameterName", this.queryParameterName) + .writeStringField("QueryParameterValue", this.queryParameterValue) + .writeStringField("Reason", this.reason) + .writeStringField("ExtendedErrorDetail", this.extendedErrorDetail) + .writeEndObject(); + } + + /** + * Reads an instance of DataLakeStorageError from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataLakeStorageError if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the DataLakeStorageError. + */ + public static DataLakeStorageError fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + // Buffer the next JSON object as ResponseError can take two forms: + // + // - A DataLakeStorageError object + // - A DataLakeStorageError object wrapped in an "error" node. + JsonReader bufferedReader = reader.bufferObject(); + bufferedReader.nextToken(); // Get to the START_OBJECT token. + while (bufferedReader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = bufferedReader.getFieldName(); + bufferedReader.nextToken(); + + if ("error".equals(fieldName)) { + // If the DataLakeStorageError was wrapped in the "error" node begin reading it now. + return readDataLakeError(bufferedReader); + } else { + bufferedReader.skipChildren(); + } + } + + // Otherwise reset the JsonReader and read the whole JSON object. + return readDataLakeError(bufferedReader.reset()); + }); + } + + private static DataLakeStorageError readDataLakeError(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataLakeStorageError deserializedStorageError = new DataLakeStorageError(); + + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedStorageError.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedStorageError.message = reader.getString(); + } else if ("queryParameterName".equals(fieldName)) { + deserializedStorageError.queryParameterName = reader.getString(); + } else if ("queryParameterValue".equals(fieldName)) { + deserializedStorageError.queryParameterValue = reader.getString(); + } else if ("reason".equals(fieldName)) { + deserializedStorageError.reason = reader.getString(); + } else if ("extendedErrorDetail".equals(fieldName)) { + deserializedStorageError.extendedErrorDetail = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageError; + }); + } + + @Override + public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLStreamException { + rootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + xmlWriter.writeStartElement(rootElementName); + xmlWriter.writeStringElement("Code", code); + xmlWriter.writeStringElement("Message", this.message); + xmlWriter.writeStringElement("QueryParameterName", this.queryParameterName); + xmlWriter.writeStringElement("QueryParameterValue", this.queryParameterValue); + xmlWriter.writeStringElement("Reason", this.reason); + xmlWriter.writeStringElement("ExtendedErrorDetail", this.extendedErrorDetail); + return xmlWriter.writeEndElement(); + } + + /** + * Reads an instance of DataLakeStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @return An instance of DataLakeStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the DataLakeStorageError. + */ + public static DataLakeStorageError fromXml(XmlReader xmlReader) throws XMLStreamException { + return fromXml(xmlReader, null); + } + + /** + * Reads an instance of DataLakeStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @param rootElementName Optional root element name to override the default defined by the model. Used to support + * cases where the model can deserialize from different root element names. + * @return An instance of DataLakeStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the DataLakeStorageError. + */ + public static DataLakeStorageError fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException { + String finalRootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + return xmlReader.readObject(finalRootElementName, reader -> { + DataLakeStorageError deserializedStorageError = new DataLakeStorageError(); + while (reader.nextElement() != XmlToken.END_ELEMENT) { + QName elementName = reader.getElementName(); + + if ("Code".equals(elementName.getLocalPart())) { + deserializedStorageError.code = reader.getStringElement(); + } else if ("Message".equals(elementName.getLocalPart())) { + deserializedStorageError.message = reader.getStringElement(); + } else if ("QueryParameterName".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterName = reader.getStringElement(); + } else if ("QueryParameterValue".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterValue = reader.getStringElement(); + } else if ("Reason".equals(elementName.getLocalPart())) { + deserializedStorageError.reason = reader.getStringElement(); + } else if ("ExtendedErrorDetail".equals(elementName.getLocalPart())) { + deserializedStorageError.extendedErrorDetail = reader.getStringElement(); + } + } + + return deserializedStorageError; + }); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/DataLakeStorageExceptionInternal.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/DataLakeStorageExceptionInternal.java new file mode 100644 index 000000000000..3062eeccbb84 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/DataLakeStorageExceptionInternal.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; +import com.azure.storage.common.implementation.StorageImplUtils; + +/** + * A {@code DatalakeStorageExceptionInternal} is thrown whenever Azure Storage successfully returns an error code that + * is not 200-level. Users can inspect the status code and error code to determine the cause of the error response. The + * exception message may also contain more detailed information depending on the type of error. The user may also + * inspect the raw HTTP response or call toString to get the full payload of the error response if present. Note that + * even some expected "errors" will be thrown as a {@code DatalakeStorageExceptionInternal}. For example, some users may + * perform a getProperties request on an entity to determine whether it exists or not. If it does not exists, an + * exception will be thrown even though this may be considered an expected indication of absence in this case. + */ +public final class DataLakeStorageExceptionInternal extends HttpResponseException { + /** + * Constructs a {@code DatalakeStorageExceptionInternal}. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized error response. + */ + public DataLakeStorageExceptionInternal(String message, HttpResponse response, DataLakeStorageError value) { + super(StorageImplUtils.convertStorageExceptionMessage(message, response), response, value); + } + + @Override + public DataLakeStorageError getValue() { + return (DataLakeStorageError) super.getValue(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java index f8cd73d74fa9..e9a19df58b4d 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java @@ -207,8 +207,8 @@ private static UserAgentPolicy getUserAgentPolicy(Configuration configuration, H */ private static HttpPipelinePolicy getResponseValidationPolicy() { return new ResponseValidationPolicyBuilder() - .addOptionalEcho(Constants.HeaderConstants.CLIENT_REQUEST_ID) - .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) + .addOptionalEcho(HttpHeaderName.X_MS_CLIENT_REQUEST_ID) + .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME) .build(); } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeImplUtils.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeImplUtils.java index ffe7a52e0e17..155b0e25bfdb 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeImplUtils.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeImplUtils.java @@ -5,10 +5,12 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.storage.blob.models.BlobStorageException; +import com.azure.storage.file.datalake.implementation.models.DataLakeStorageExceptionInternal; import com.azure.storage.file.datalake.models.DataLakeStorageException; import reactor.core.Exceptions; import java.util.List; +import java.util.concurrent.Callable; import java.util.function.Supplier; import java.util.stream.Collectors; @@ -54,4 +56,14 @@ public static T returnOrConvertException(Supplier supplier, ClientLogger throw logger.logExceptionAsError((RuntimeException) transformBlobStorageException(ex)); } } + + public static Callable wrapServiceCallWithExceptionMapping(Supplier serviceCall) { + return () -> { + try { + return serviceCall.get(); + } catch (DataLakeStorageExceptionInternal internal) { + throw (DataLakeStorageException) ModelHelper.mapToDataLakeStorageException(internal); + } + }; + } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java index d40a20e46db6..c4042c44331a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/ModelHelper.java @@ -8,6 +8,7 @@ import com.azure.storage.common.ParallelTransferOptions; import com.azure.storage.common.implementation.Constants; import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.models.DataLakeStorageExceptionInternal; import com.azure.storage.file.datalake.implementation.models.PathExpiryOptions; import com.azure.storage.file.datalake.implementation.models.PathResourceType; import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; @@ -21,7 +22,7 @@ /** * This class provides helper methods for common model patterns. - * + *

* RESERVED FOR INTERNAL USE. */ public class ModelHelper { @@ -184,4 +185,25 @@ public static String buildMetadataString(Map metadata) { return null; } } + + /** + * Maps the internal exception to a public exception, if and only if {@code internal} is an instance of + * {@link DataLakeStorageExceptionInternal} and it will be mapped to {@link DataLakeStorageException}. + *

+ * The internal exception is required as the public exception was created using Object as the exception value. This + * was incorrect and should have been a specific type that was XML deserializable. So, an internal exception was + * added to handle this and we map that to the public exception, keeping the API the same. + * + * @param internal The internal exception. + * @return The public exception. + */ + public static Throwable mapToDataLakeStorageException(Throwable internal) { + if (internal instanceof DataLakeStorageExceptionInternal) { + DataLakeStorageExceptionInternal internalException = (DataLakeStorageExceptionInternal) internal; + return new DataLakeStorageException(internalException.getMessage(), internalException.getResponse(), + internalException.getValue()); + } + + return internal; + } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageException.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageException.java index b2b629ca006d..dc15f6d0b4b4 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageException.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageException.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpResponse; import com.azure.storage.common.implementation.StorageImplUtils; -import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE; +import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE_HEADER_NAME; /** * A {@code DataLakeStorageException} is thrown whenever Azure Storage successfully returns an error code that is not @@ -38,7 +38,7 @@ public DataLakeStorageException(String message, HttpResponse response, Object va * @return The error code returned by the service. */ public String getErrorCode() { - return super.getResponse().getHeaders().getValue(ERROR_CODE); + return super.getResponse().getHeaders().getValue(ERROR_CODE_HEADER_NAME); } /** diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/module-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/module-info.java index daff63b6b0fa..3419eb15d9ba 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/module-info.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/module-info.java @@ -15,6 +15,8 @@ exports com.azure.storage.file.datalake.implementation.models to com.azure.core; + opens com.azure.storage.file.datalake to com.azure.core; + opens com.azure.storage.file.datalake.models to com.azure.core; opens com.azure.storage.file.datalake.implementation.models to com.azure.core; } diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkAsyncTests.java b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkAsyncTests.java index 41959c84ae06..5477a8b2e628 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkAsyncTests.java +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkAsyncTests.java @@ -5,6 +5,7 @@ import com.azure.core.http.rest.Response; import com.azure.core.test.annotation.LiveOnly; +import com.azure.storage.common.implementation.Constants; import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.FileReadAsyncResponse; import com.azure.storage.file.datalake.models.PathInfo; @@ -85,7 +86,8 @@ public void pathSetMetadata() { .assertNext(r -> { assertEquals(200, r.getStatusCode()); assertTrue(Boolean.parseBoolean(r.getHeaders().getValue(X_MS_REQUEST_SERVER_ENCRYPTED))); - assertEquals(key.getKeySha256(), r.getHeaders().getValue(X_MS_ENCRYPTION_KEY_SHA256)); + assertEquals(key.getKeySha256(), + r.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME)); }) .verifyComplete(); } @@ -109,7 +111,8 @@ public void fileAppend() { StepVerifier.create(response) .assertNext(r -> { assertTrue(Boolean.parseBoolean(r.getHeaders().getValue(X_MS_REQUEST_SERVER_ENCRYPTED))); - assertEquals(key.getKeySha256(), r.getHeaders().getValue(X_MS_ENCRYPTION_KEY_SHA256)); + assertEquals(key.getKeySha256(), + r.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME)); }) .verifyComplete(); } @@ -139,7 +142,8 @@ public void directoryCreateSupDir() { .assertNext(r -> { assertEquals(key.getKeySha256(), r.getValue().getCustomerProvidedKey().getKeySha256()); assertTrue(Boolean.parseBoolean(r.getHeaders().getValue(X_MS_REQUEST_SERVER_ENCRYPTED))); - assertEquals(key.getKeySha256(), r.getHeaders().getValue(X_MS_ENCRYPTION_KEY_SHA256)); + assertEquals(key.getKeySha256(), + r.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME)); }) .verifyComplete(); } diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkTests.java b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkTests.java index 35f398bd0fe0..6a21aa652d35 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkTests.java +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CpkTests.java @@ -4,6 +4,7 @@ import com.azure.core.http.rest.Response; import com.azure.core.test.annotation.LiveOnly; +import com.azure.storage.common.implementation.Constants; import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.PathInfo; import com.azure.storage.file.datalake.models.PathProperties; @@ -76,7 +77,8 @@ public void pathSetMetadata() { assertEquals(200, response.getStatusCode()); assertTrue(Boolean.parseBoolean(response.getHeaders().getValue(X_MS_REQUEST_SERVER_ENCRYPTED))); - assertEquals(key.getKeySha256(), response.getHeaders().getValue(X_MS_ENCRYPTION_KEY_SHA256)); + assertEquals(key.getKeySha256(), + response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME)); } @Test @@ -95,7 +97,8 @@ public void fileAppend() { DATA.getDefaultDataSizeLong(), null, null, null, null); assertTrue(Boolean.parseBoolean(response.getHeaders().getValue(X_MS_REQUEST_SERVER_ENCRYPTED))); - assertEquals(key.getKeySha256(), response.getHeaders().getValue(X_MS_ENCRYPTION_KEY_SHA256)); + assertEquals(key.getKeySha256(), + response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME)); } @Test @@ -119,7 +122,8 @@ public void directoryCreateSupDir() { assertEquals(key.getKeySha256(), response.getValue().getCustomerProvidedKey().getKeySha256()); assertTrue(Boolean.parseBoolean(response.getHeaders().getValue(X_MS_REQUEST_SERVER_ENCRYPTED))); - assertEquals(key.getKeySha256(), response.getHeaders().getValue(X_MS_ENCRYPTION_KEY_SHA256)); + assertEquals(key.getKeySha256(), + response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256_HEADER_NAME)); } @Test diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeErrorDeserializationTests.java b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeErrorDeserializationTests.java new file mode 100644 index 000000000000..60ffede3dfc3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeErrorDeserializationTests.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.test.utils.MockTokenCredential; +import com.azure.storage.file.datalake.models.DataLakeStorageException; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +import java.nio.charset.StandardCharsets; + +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * Tests cases where the service returns a response that would result in a {@link DataLakeStorageException} being thrown + * with a response body that needs to be deserialized. + */ +public class DataLakeErrorDeserializationTests { + @Test + public void errorResponseBody() { + String errorResponse = "ContainerAlreadyExists" + + "The specified container already exists."; + HttpPipeline httpPipeline = new HttpPipelineBuilder() + .httpClient(request -> Mono.just(new MockHttpResponse(request, 409, + new HttpHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/xml"), + errorResponse.getBytes(StandardCharsets.UTF_8)))) + .build(); + DataLakeFileClient fileClient = new DataLakePathClientBuilder() + .endpoint("https://account.blob.core.windows.net/container") + .fileSystemName("filesystem") + .pathName("path") + .credential(new MockTokenCredential()) + .pipeline(httpPipeline) + .buildFileClient(); + + DataLakeStorageException exception = assertThrows(DataLakeStorageException.class, fileClient::create); + assertTrue(exception.getMessage().contains("The specified container already exists.")); + // assertEquals(BlobErrorCode.CONTAINER_ALREADY_EXISTS, exception.getErrorCode()); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeTestBase.java b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeTestBase.java index 9ed45bb2fe46..cf86ae21ef4e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeTestBase.java +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DataLakeTestBase.java @@ -85,8 +85,6 @@ public class DataLakeTestBase extends TestProxyTestBase { protected static final HttpHeaderName X_MS_REQUEST_SERVER_ENCRYPTED = HttpHeaderName.fromString(Constants.HeaderConstants.REQUEST_SERVER_ENCRYPTED); - protected static final HttpHeaderName X_MS_ENCRYPTION_KEY_SHA256 = - HttpHeaderName.fromString(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256); protected static final HttpHeaderName X_MS_VERSION = HttpHeaderName.fromString("x-ms-version"); protected static final HttpHeaderName X_MS_BLOB_SEQUENCE_NUMBER = HttpHeaderName.fromString("x-ms-blob-sequence-number"); protected static final HttpHeaderName X_MS_COPY_COMPLETION_TIME = HttpHeaderName.fromString("x-ms-copy-completion-time"); diff --git a/sdk/storage/azure-storage-file-datalake/swagger/README.md b/sdk/storage/azure-storage-file-datalake/swagger/README.md index eca1dce579ee..7f68afc0f3c6 100644 --- a/sdk/storage/azure-storage-file-datalake/swagger/README.md +++ b/sdk/storage/azure-storage-file-datalake/swagger/README.md @@ -27,7 +27,7 @@ license-header: MICROSOFT_MIT_SMALL enable-sync-stack: true context-client-method-parameter: true optional-constant-as-enum: true -default-http-exception-type: com.azure.storage.file.datalake.models.DataLakeStorageException +default-http-exception-type: com.azure.storage.file.datalake.implementation.models.DataLakeStorageExceptionInternal models-subpackage: implementation.models custom-types: FileSystemInfo,FileSystemItem,FileSystemProperties,PathInfo,PathItem,PathProperties,ListFileSystemsOptions,PathHttpHeaders,EncryptionAlgorithmType,LeaseAction custom-types-subpackage: models diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareAsyncClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareAsyncClient.java index 041ee8cc2653..ed9cae6362f8 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareAsyncClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareAsyncClient.java @@ -376,6 +376,7 @@ Mono> createWithResponse(ShareCreateOptions options, Context options.getAccessTier(), enabledProtocol, options.getRootSquash(), options.isSnapshotVirtualDirectoryAccessEnabled(), options.isPaidBurstingEnabled(), options.getPaidBurstingMaxBandwidthMibps(), options.getPaidBurstingMaxIops(), context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapToShareInfoResponse); } @@ -525,6 +526,7 @@ public Mono> createSnapshotWithResponse(Map> createSnapshotWithResponse(Map metadata, Context context) { context = context == null ? Context.NONE : context; return azureFileStorageClient.getShares().createSnapshotWithResponseAsync(shareName, null, metadata, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapCreateSnapshotResponse); } @@ -626,7 +628,8 @@ Mono> deleteWithResponse(ShareDeleteOptions options, Context cont context = context == null ? Context.NONE : context; return azureFileStorageClient.getShares().deleteNoCustomHeadersWithResponseAsync(shareName, snapshot, null, ModelHelper.toDeleteSnapshotsOptionType(options.getDeleteSnapshotsOptions()), - requestConditions.getLeaseId(), context); + requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -807,6 +810,7 @@ Mono> getPropertiesWithResponse(ShareGetPropertiesOpti context = context == null ? Context.NONE : context; return azureFileStorageClient.getShares() .getPropertiesWithResponseAsync(shareName, snapshot, null, requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapGetPropertiesResponse); } @@ -941,6 +945,7 @@ Mono> setPropertiesWithResponse(ShareSetPropertiesOptions op options.getQuotaInGb(), options.getAccessTier(), requestConditions.getLeaseId(), options.getRootSquash(), options.isSnapshotVirtualDirectoryAccessEnabled(), options.isPaidBurstingEnabled(), options.getPaidBurstingMaxBandwidthMibps(), options.getPaidBurstingMaxIops(), context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapToShareInfoResponse); } @@ -1065,6 +1070,7 @@ Mono> setMetadataWithResponse(ShareSetMetadataOptions option context = context == null ? Context.NONE : context; return azureFileStorageClient.getShares().setMetadataNoCustomHeadersWithResponseAsync(shareName, null, options.getMetadata(), requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapToShareInfoResponse); } @@ -1129,6 +1135,7 @@ public PagedFlux getAccessPolicy(ShareGetAccessPolicyOpti marker -> this.azureFileStorageClient.getShares() .getAccessPolicyWithResponseAsync(shareName, null, requestConditions.getLeaseId(), Context.NONE) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), @@ -1259,6 +1266,7 @@ Mono> setAccessPolicyWithResponse(ShareSetAccessPolicyOption return azureFileStorageClient.getShares().setAccessPolicyNoCustomHeadersWithResponseAsync(shareName, null, requestConditions.getLeaseId(), permissions, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapToShareInfoResponse); } @@ -1350,6 +1358,7 @@ Mono> getStatisticsWithResponse(ShareGetStatisticsOpti context = context == null ? Context.NONE : context; return azureFileStorageClient.getShares().getStatisticsNoCustomHeadersWithResponseAsync(shareName, null, requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapGetStatisticsResponse); } @@ -2137,9 +2146,10 @@ Mono> createPermissionWithResponse(String filePermission, FileP // NOTE: Should we check for null or empty? SharePermission sharePermission = new SharePermission().setPermission(filePermission).setFormat(filePermissionFormat); return azureFileStorageClient.getShares() - .createPermissionWithResponseAsync(shareName, sharePermission, null, context) - .map(response -> new SimpleResponse<>(response, - response.getDeserializedHeaders().getXMsFilePermissionKey())); + .createPermissionWithResponseAsync(shareName, sharePermission, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) + .map(response -> new SimpleResponse<>(response, + response.getDeserializedHeaders().getXMsFilePermissionKey())); } /** @@ -2245,6 +2255,7 @@ Mono> getPermissionWithResponse(String filePermissionKey, FileP Context context) { return azureFileStorageClient.getShares() .getPermissionWithResponseAsync(shareName, filePermissionKey, filePermissionFormat, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, response.getValue().getPermission())); } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClient.java index fbdcc92ce420..7fc1a899dcc0 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareClient.java @@ -22,7 +22,6 @@ import com.azure.storage.common.implementation.SasImplUtils; import com.azure.storage.common.implementation.StorageImplUtils; import com.azure.storage.file.share.implementation.AzureFileStorageImpl; -import com.azure.storage.file.share.models.FilePermissionFormat; import com.azure.storage.file.share.implementation.models.SharePermission; import com.azure.storage.file.share.implementation.models.ShareSignedIdentifierWrapper; import com.azure.storage.file.share.implementation.models.ShareStats; @@ -33,6 +32,7 @@ import com.azure.storage.file.share.implementation.models.SharesGetPropertiesHeaders; import com.azure.storage.file.share.implementation.util.ModelHelper; import com.azure.storage.file.share.implementation.util.ShareSasImplUtil; +import com.azure.storage.file.share.models.FilePermissionFormat; import com.azure.storage.file.share.models.ShareDirectoryInfo; import com.azure.storage.file.share.models.ShareErrorCode; import com.azure.storage.file.share.models.ShareFileHttpHeaders; @@ -64,6 +64,8 @@ import java.util.function.Supplier; import static com.azure.storage.common.implementation.StorageImplUtils.sendRequest; +import static com.azure.storage.file.share.implementation.util.ModelHelper.wrapServiceCallWithExceptionMapping; +import static com.azure.storage.file.share.implementation.util.ModelHelper.wrapTimeoutServiceCallWithExceptionMapping; /** * This class provides a client that contains all the operations for interacting with a share in Azure Storage Share. @@ -362,11 +364,11 @@ public Response createWithResponse(ShareCreateOptions options, Durati String enabledProtocol = finalOptions.getProtocols() == null ? null : finalOptions.getProtocols().toString(); String finalEnabledProtocol = "".equals(enabledProtocol) ? null : enabledProtocol; - Callable> operation = () -> azureFileStorageClient.getShares() + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> azureFileStorageClient.getShares() .createNoCustomHeadersWithResponse(shareName, null, finalOptions.getMetadata(), finalOptions.getQuotaInGb(), finalOptions.getAccessTier(), finalEnabledProtocol, finalOptions.getRootSquash(), finalOptions.isSnapshotVirtualDirectoryAccessEnabled(), finalOptions.isPaidBurstingEnabled(), - finalOptions.getPaidBurstingMaxBandwidthMibps(), finalOptions.getPaidBurstingMaxIops(), finalContext); + finalOptions.getPaidBurstingMaxBandwidthMibps(), finalOptions.getPaidBurstingMaxIops(), finalContext)); return ModelHelper.mapToShareInfoResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -501,8 +503,9 @@ public ShareSnapshotInfo createSnapshot() { public Response createSnapshotWithResponse(Map metadata, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> - this.azureFileStorageClient.getShares().createSnapshotWithResponse(shareName, null, metadata, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().createSnapshotWithResponse(shareName, null, metadata, + finalContext)); return ModelHelper.mapCreateSnapshotResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -594,9 +597,10 @@ public Response deleteWithResponse(ShareDeleteOptions options, Duration ti ShareRequestConditions requestConditions = finalOptions.getRequestConditions() == null ? new ShareRequestConditions() : finalOptions.getRequestConditions(); - Callable> operation = () -> this.azureFileStorageClient.getShares() - .deleteNoCustomHeadersWithResponse(shareName, snapshot, null, ModelHelper.toDeleteSnapshotsOptionType( - finalOptions.getDeleteSnapshotsOptions()), requestConditions.getLeaseId(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().deleteNoCustomHeadersWithResponse(shareName, snapshot, null, + ModelHelper.toDeleteSnapshotsOptionType(finalOptions.getDeleteSnapshotsOptions()), + requestConditions.getLeaseId(), finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -760,9 +764,9 @@ public Response getPropertiesWithResponse(ShareGetPropertiesOpt Context finalContext = context == null ? Context.NONE : context; ShareRequestConditions requestConditions = options.getRequestConditions() == null ? new ShareRequestConditions() : options.getRequestConditions(); - Callable> operation = () -> + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getShares() - .getPropertiesWithResponse(shareName, snapshot, null, requestConditions.getLeaseId(), finalContext); + .getPropertiesWithResponse(shareName, snapshot, null, requestConditions.getLeaseId(), finalContext)); return ModelHelper.mapGetPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -887,11 +891,12 @@ public Response setPropertiesWithResponse(ShareSetPropertiesOptions o ? new ShareRequestConditions() : options.getRequestConditions(); Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getShares() - .setPropertiesNoCustomHeadersWithResponse(shareName, null, options.getQuotaInGb(), options.getAccessTier(), - requestConditions.getLeaseId(), options.getRootSquash(), - options.isSnapshotVirtualDirectoryAccessEnabled(), options.isPaidBurstingEnabled(), - options.getPaidBurstingMaxBandwidthMibps(), options.getPaidBurstingMaxIops(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().setPropertiesNoCustomHeadersWithResponse(shareName, null, + options.getQuotaInGb(), options.getAccessTier(), requestConditions.getLeaseId(), + options.getRootSquash(), options.isSnapshotVirtualDirectoryAccessEnabled(), + options.isPaidBurstingEnabled(), options.getPaidBurstingMaxBandwidthMibps(), + options.getPaidBurstingMaxIops(), finalContext)); return ModelHelper.mapToShareInfoResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1007,9 +1012,9 @@ public Response setMetadataWithResponse(ShareSetMetadataOptions optio ? new ShareRequestConditions() : options.getRequestConditions(); Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getShares() - .setMetadataNoCustomHeadersWithResponse(shareName, null, options.getMetadata(), - requestConditions.getLeaseId(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getShares().setMetadataNoCustomHeadersWithResponse(shareName, null, + options.getMetadata(), requestConditions.getLeaseId(), finalContext)); return ModelHelper.mapToShareInfoResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1073,8 +1078,8 @@ public PagedIterable getAccessPolicy(ShareGetAccessPolicy ? new ShareRequestConditions() : finalOptions.getRequestConditions(); ResponseBase responseBase = - this.azureFileStorageClient.getShares() - .getAccessPolicyWithResponse(shareName, null, requestConditions.getLeaseId(), Context.NONE); + wrapServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getShares() + .getAccessPolicyWithResponse(shareName, null, requestConditions.getLeaseId(), Context.NONE)); Supplier> response = () -> new PagedResponseBase<>( responseBase.getRequest(), @@ -1207,9 +1212,9 @@ public Response setAccessPolicyWithResponse(ShareSetAccessPolicyOptio ModelHelper.truncateAccessPolicyPermissionsToSeconds(options.getPermissions()); Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getShares() - .setAccessPolicyNoCustomHeadersWithResponse(shareName, null, requestConditions.getLeaseId(), permissions, - finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().setAccessPolicyNoCustomHeadersWithResponse(shareName, null, + requestConditions.getLeaseId(), permissions, finalContext)); return ModelHelper.mapToShareInfoResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1301,8 +1306,9 @@ public Response getStatisticsWithResponse(ShareGetStatisticsOpt ? new ShareRequestConditions() : options.getRequestConditions(); Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getShares() - .getStatisticsNoCustomHeadersWithResponse(shareName, null, requestConditions.getLeaseId(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().getStatisticsNoCustomHeadersWithResponse(shareName, null, + requestConditions.getLeaseId(), finalContext)); return ModelHelper.mapGetStatisticsResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1970,11 +1976,11 @@ public String createPermission(ShareFilePermission filePermission) { public Response createPermissionWithResponse(String filePermission, Context context) { Context finalContext = context == null ? Context.NONE : context; SharePermission sharePermission = new SharePermission().setPermission(filePermission); - ResponseBase response = this.azureFileStorageClient.getShares() - .createPermissionWithResponse(shareName, sharePermission, null, finalContext); + ResponseBase response = wrapServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().createPermissionWithResponse(shareName, sharePermission, null, + finalContext)); - return new SimpleResponse<>(response, - response.getDeserializedHeaders().getXMsFilePermissionKey()); + return new SimpleResponse<>(response, response.getDeserializedHeaders().getXMsFilePermissionKey()); } /** @@ -2001,11 +2007,11 @@ public Response createPermissionWithResponse(ShareFilePermission filePer Context finalContext = context == null ? Context.NONE : context; SharePermission sharePermission = new SharePermission().setPermission(filePermission.getPermission()) .setFormat(filePermission.getPermissionFormat()); - ResponseBase response = this.azureFileStorageClient.getShares() - .createPermissionWithResponse(shareName, sharePermission, null, finalContext); + ResponseBase response = wrapServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().createPermissionWithResponse(shareName, sharePermission, null, + finalContext)); - return new SimpleResponse<>(response, - response.getDeserializedHeaders().getXMsFilePermissionKey()); + return new SimpleResponse<>(response, response.getDeserializedHeaders().getXMsFilePermissionKey()); } /** @@ -2072,8 +2078,9 @@ public String getPermission(String filePermissionKey, FilePermissionFormat fileP @ServiceMethod(returns = ReturnType.SINGLE) public Response getPermissionWithResponse(String filePermissionKey, Context context) { Context finalContext = context == null ? Context.NONE : context; - ResponseBase response = this.azureFileStorageClient.getShares() - .getPermissionWithResponse(shareName, filePermissionKey, null, null, finalContext); + ResponseBase response = wrapServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().getPermissionWithResponse(shareName, filePermissionKey, null, null, + finalContext)); return new SimpleResponse<>(response, response.getValue().getPermission()); } @@ -2103,8 +2110,9 @@ public Response getPermissionWithResponse(String filePermissionKey, Cont @ServiceMethod(returns = ReturnType.SINGLE) public Response getPermissionWithResponse(String filePermissionKey, FilePermissionFormat filePermissionFormat, Context context) { Context finalContext = context == null ? Context.NONE : context; - ResponseBase response = this.azureFileStorageClient.getShares() - .getPermissionWithResponse(shareName, filePermissionKey, filePermissionFormat, null, finalContext); + ResponseBase response = wrapServiceCallWithExceptionMapping(() -> + this.azureFileStorageClient.getShares().getPermissionWithResponse(shareName, filePermissionKey, + filePermissionFormat, null, finalContext)); return new SimpleResponse<>(response, response.getValue().getPermission()); } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryAsyncClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryAsyncClient.java index 95bd5c4d05a5..e012dc83fe09 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryAsyncClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryAsyncClient.java @@ -336,8 +336,7 @@ public Mono> createWithResponse(FileSmbProperties s * shareDirectoryAsyncClient.createWithResponse(options) * .subscribe(response -> * System.out.println("Completed creating the directory with status code:" + response.getStatusCode()), - * error -> System.err.print(error.toString()) - * ); + * error -> System.err.print(error.toString())); * * * @@ -379,6 +378,7 @@ Mono> createWithResponse(FileSmbProperties smbPrope return azureFileStorageClient.getDirectories() .createWithResponseAsync(shareName, directoryPath, fileAttributes, null, metadata, filePermission, filePermissionFormat, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapShareDirectoryInfo); } @@ -533,7 +533,8 @@ public Mono> deleteWithResponse() { Mono> deleteWithResponse(Context context) { context = context == null ? Context.NONE : context; return azureFileStorageClient.getDirectories() - .deleteNoCustomHeadersWithResponseAsync(shareName, directoryPath, null, context); + .deleteNoCustomHeadersWithResponseAsync(shareName, directoryPath, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -672,6 +673,7 @@ Mono> getPropertiesWithResponse(Context conte context = context == null ? Context.NONE : context; return azureFileStorageClient.getDirectories() .getPropertiesWithResponseAsync(shareName, directoryPath, snapshot, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapShareDirectoryPropertiesResponse); } @@ -795,6 +797,7 @@ Mono> setPropertiesWithResponse(FileSmbProperties s return azureFileStorageClient.getDirectories() .setPropertiesWithResponseAsync(shareName, directoryPath, fileAttributes, null, filePermission, filePermissionFormat, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapSetPropertiesResponse); } @@ -885,6 +888,7 @@ Mono> setMetadataWithResponse(Map listFilesAndDirectoriesWithOptionalTimeout( modifiedOptions.getPrefix(), snapshot, marker, pageSize == null ? modifiedOptions.getMaxResultsPerPage() : pageSize, null, finalIncludeTypes, modifiedOptions.includeExtendedInfo(), context), timeout) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), ModelHelper.convertResponseAndGetNumOfResults(response), response.getValue().getNextMarker(), null)); @@ -1060,6 +1065,7 @@ PagedFlux listHandlesWithOptionalTimeout(Integer maxResultPerPage, b marker -> StorageImplUtils.applyOptionalTimeout(this.azureFileStorageClient.getDirectories() .listHandlesWithResponseAsync(shareName, directoryPath, marker, maxResultPerPage, null, snapshot, recursive, context), timeout) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), @@ -1132,6 +1138,7 @@ public Mono> forceCloseHandleWithResponse(String hand Mono> forceCloseHandleWithResponse(String handleId, Context context) { return this.azureFileStorageClient.getDirectories().forceCloseHandlesWithResponseAsync(shareName, directoryPath, handleId, null, null, snapshot, false, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, new CloseHandlesInfo(response.getDeserializedHeaders().getXMsNumberOfHandlesClosed(), response.getDeserializedHeaders().getXMsNumberOfHandlesFailed()))); @@ -1176,6 +1183,7 @@ PagedFlux forceCloseAllHandlesWithTimeout(boolean recursive, D marker -> StorageImplUtils.applyOptionalTimeout(this.azureFileStorageClient.getDirectories() .forceCloseHandlesWithResponseAsync(shareName, directoryPath, "*", null, marker, snapshot, recursive, context), timeout) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), @@ -1298,6 +1306,7 @@ Mono> renameWithResponse(ShareFileRenameOpti null /* timeout */, options.getReplaceIfExists(), options.isIgnoreReadOnly(), options.getFilePermission(), options.getFilePermissionFormat(), filePermissionKey, options.getMetadata(), sourceConditions, destinationConditions, smbInfo, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, destinationDirectoryClient)); } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryClient.java index 8374e8a40dcf..70dc18a709c6 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareDirectoryClient.java @@ -67,6 +67,7 @@ import java.util.function.Function; import static com.azure.storage.common.implementation.StorageImplUtils.sendRequest; +import static com.azure.storage.file.share.implementation.util.ModelHelper.wrapTimeoutServiceCallWithExceptionMapping; /** * This class provides a client that contains all the operations for interacting with directory in Azure Storage File @@ -357,11 +358,11 @@ public Response createWithResponse(ShareDirectoryCreateOptio String fileLastWriteTime = properties.setFileLastWriteTime(FileConstants.FILE_TIME_NOW); String fileChangeTime = properties.getFileChangeTimeString(); - Callable> operation = () -> - this.azureFileStorageClient.getDirectories() + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getDirectories() .createWithResponse(shareName, directoryPath, fileAttributes, null, finalOptions.getMetadata(), finalFilePermission, finalOptions.getFilePermissionFormat(), filePermissionKey, fileCreationTime, - fileLastWriteTime, fileChangeTime, finalContext); + fileLastWriteTime, fileChangeTime, finalContext)); return ModelHelper.mapShareDirectoryInfo(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -496,8 +497,9 @@ public void delete() { @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getDirectories() - .deleteNoCustomHeadersWithResponse(shareName, directoryPath, null, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getDirectories().deleteNoCustomHeadersWithResponse(shareName, + directoryPath, null, finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -623,9 +625,9 @@ public ShareDirectoryProperties getProperties() { @ServiceMethod(returns = ReturnType.SINGLE) public Response getPropertiesWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> - this.azureFileStorageClient.getDirectories().getPropertiesWithResponse(shareName, directoryPath, - snapshot, null, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .getPropertiesWithResponse(shareName, directoryPath, snapshot, null, finalContext)); return ModelHelper.mapShareDirectoryPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); @@ -703,10 +705,10 @@ public Response setPropertiesWithResponse(FileSmbProperties String fileCreationTime = smbProperties.setFileCreationTime(FileConstants.PRESERVE); String fileLastWriteTime = smbProperties.setFileLastWriteTime(FileConstants.PRESERVE); String fileChangeTime = smbProperties.getFileChangeTimeString(); - Callable> operation = () -> - this.azureFileStorageClient.getDirectories().setPropertiesWithResponse(shareName, directoryPath, - fileAttributes, null, finalFilePermission, null, filePermissionKey, fileCreationTime, fileLastWriteTime, - fileChangeTime, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .setPropertiesWithResponse(shareName, directoryPath, fileAttributes, null, finalFilePermission, null, + filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, finalContext)); return ModelHelper.mapSetPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -757,10 +759,11 @@ public Response setPropertiesWithResponse(ShareDirectorySetP String fileCreationTime = smbProperties.setFileCreationTime(FileConstants.PRESERVE); String fileLastWriteTime = smbProperties.setFileLastWriteTime(FileConstants.PRESERVE); String fileChangeTime = smbProperties.getFileChangeTimeString(); - Callable> operation = () -> - this.azureFileStorageClient.getDirectories().setPropertiesWithResponse(shareName, directoryPath, - fileAttributes, null, finalFilePermission, options.getFilePermissions().getPermissionFormat(), - filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .setPropertiesWithResponse(shareName, directoryPath, fileAttributes, null, finalFilePermission, + options.getFilePermissions().getPermissionFormat(), filePermissionKey, fileCreationTime, + fileLastWriteTime, fileChangeTime, finalContext)); return ModelHelper.mapSetPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -847,9 +850,9 @@ public ShareDirectorySetMetadataInfo setMetadata(Map metadata) { public Response setMetadataWithResponse(Map metadata, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> - this.azureFileStorageClient.getDirectories().setMetadataWithResponse(shareName, directoryPath, null, - metadata, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .setMetadataWithResponse(shareName, directoryPath, null, metadata, finalContext)); return ModelHelper.setShareDirectoryMetadataResponse(sendRequest(operation, timeout, ShareStorageException.class)); @@ -978,11 +981,12 @@ public PagedIterable listFilesAndDirectories(ShareListFilesAndDir final List finalIncludeTypes = includeTypes.isEmpty() ? null : includeTypes; BiFunction> retriever = (marker, pageSize) -> { - Callable> operation = () -> this.azureFileStorageClient - .getDirectories().listFilesAndDirectoriesSegmentNoCustomHeadersWithResponse(shareName, directoryPath, + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .listFilesAndDirectoriesSegmentNoCustomHeadersWithResponse(shareName, directoryPath, modifiedOptions.getPrefix(), snapshot, marker, pageSize == null ? modifiedOptions.getMaxResultsPerPage() : pageSize, null, finalIncludeTypes, - modifiedOptions.includeExtendedInfo(), finalContext); + modifiedOptions.includeExtendedInfo(), finalContext)); Response response = sendRequest(operation, timeout, ShareStorageException.class); @@ -1032,8 +1036,9 @@ PagedIterable listHandlesWithOptionalTimeout(Integer maxResultPerPag Context finalContext = context == null ? Context.NONE : context; Function> retriever = (marker) -> { Callable> operation = - () -> this.azureFileStorageClient.getDirectories().listHandlesWithResponse(shareName, directoryPath, - marker, maxResultPerPage, null, snapshot, recursive, finalContext); + wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .listHandlesWithResponse(shareName, directoryPath, marker, maxResultPerPage, null, snapshot, + recursive, finalContext)); ResponseBase response = sendRequest(operation, timeout, ShareStorageException.class); @@ -1106,9 +1111,10 @@ public CloseHandlesInfo forceCloseHandle(String handleId) { public Response forceCloseHandleWithResponse(String handleId, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> - this.azureFileStorageClient.getDirectories().forceCloseHandlesWithResponse(shareName, directoryPath, - handleId, null, null, snapshot, false, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() + .forceCloseHandlesWithResponse(shareName, directoryPath, handleId, null, null, snapshot, false, + finalContext)); ResponseBase response = sendRequest(operation, timeout, ShareStorageException.class); @@ -1150,9 +1156,9 @@ public CloseHandlesInfo forceCloseAllHandles(boolean recursive, Duration timeout Function> retriever = (marker) -> { Callable> operation = - () -> this.azureFileStorageClient.getDirectories() + wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getDirectories() .forceCloseHandlesWithResponse(shareName, directoryPath, "*", null, marker, snapshot, - recursive, finalContext); + recursive, finalContext)); ResponseBase response = sendRequest(operation, timeout, ShareStorageException.class); @@ -1274,12 +1280,12 @@ public Response renameWithResponse(ShareFileRenameOptions String renameSource = this.sasToken != null ? this.getDirectoryUrl() + "?" + this.sasToken.getSignature() : this.getDirectoryUrl(); - Callable> operation = () -> destinationDirectoryClient.azureFileStorageClient.getDirectories() - .renameNoCustomHeadersWithResponse(destinationDirectoryClient.getShareName(), - destinationDirectoryClient.getDirectoryPath(), renameSource, null /* timeout */, - options.getReplaceIfExists(), options.isIgnoreReadOnly(), options.getFilePermission(), - options.getFilePermissionFormat(), filePermissionKey, options.getMetadata(), sourceConditions, - destinationConditions, smbInfo, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> destinationDirectoryClient.azureFileStorageClient.getDirectories().renameNoCustomHeadersWithResponse( + destinationDirectoryClient.getShareName(), destinationDirectoryClient.getDirectoryPath(), renameSource, + null /* timeout */, options.getReplaceIfExists(), options.isIgnoreReadOnly(), + options.getFilePermission(), options.getFilePermissionFormat(), filePermissionKey, + options.getMetadata(), sourceConditions, destinationConditions, smbInfo, finalContext)); return new SimpleResponse<>(sendRequest(operation, timeout, ShareStorageException.class), destinationDirectoryClient); diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileAsyncClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileAsyncClient.java index fe7dc810eaed..837170108041 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileAsyncClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileAsyncClient.java @@ -487,6 +487,7 @@ Mono> createWithResponse(long maxSize, ShareFileHttpHead .createWithResponseAsync(shareName, filePath, maxSize, fileAttributes, null, metadata, filePermission, filePermissionFormat, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, requestConditions.getLeaseId(), httpHeaders, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::createFileInfoResponse); } @@ -709,6 +710,7 @@ public PollerFlux beginCopy(String sourceUrl, ShareFile .startCopyWithResponseAsync(shareName, filePath, copySource, null, options.getMetadata(), options.getFilePermission(), tempSmbProperties.getFilePermissionKey(), finalRequestConditions.getLeaseId(), copyFileSmbInfo, context)) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> { final FilesStartCopyHeaders headers = response.getDeserializedHeaders(); copyId.set(headers.getXMsCopyId()); @@ -859,7 +861,8 @@ Mono> abortCopyWithResponse(String copyId, ShareRequestConditions Context context) { requestConditions = requestConditions == null ? new ShareRequestConditions() : requestConditions; return azureFileStorageClient.getFiles().abortCopyNoCustomHeadersWithResponseAsync(shareName, filePath, copyId, - null, requestConditions.getLeaseId(), context); + null, requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -1234,7 +1237,8 @@ private Mono>> downloadRange Boolean rangeGetContentMD5, ShareRequestConditions requestConditions, Context context) { String rangeString = range == null ? null : range.toHeaderValue(); return azureFileStorageClient.getFiles().downloadWithResponseAsync(shareName, filePath, null, - rangeString, rangeGetContentMD5, requestConditions.getLeaseId(), context); + rangeString, rangeGetContentMD5, requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -1328,7 +1332,8 @@ public Mono> deleteWithResponse(ShareRequestConditions requestCon Mono> deleteWithResponse(ShareRequestConditions requestConditions, Context context) { requestConditions = requestConditions == null ? new ShareRequestConditions() : requestConditions; return azureFileStorageClient.getFiles() - .deleteNoCustomHeadersWithResponseAsync(shareName, filePath, null, requestConditions.getLeaseId(), context); + .deleteNoCustomHeadersWithResponseAsync(shareName, filePath, null, requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -1508,6 +1513,7 @@ Mono> getPropertiesWithResponse(ShareRequestCondit context = context == null ? Context.NONE : context; return azureFileStorageClient.getFiles() .getPropertiesWithResponseAsync(shareName, filePath, snapshot, null, requestConditions.getLeaseId(), context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::getPropertiesResponse); } @@ -1773,6 +1779,7 @@ Mono> setPropertiesWithResponse(long newFileSize, ShareF .setHttpHeadersWithResponseAsync(shareName, filePath, fileAttributes, null, newFileSize, filePermission, filePermissionFormat, filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, requestConditions.getLeaseId(), httpHeaders, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::setPropertiesResponse); } @@ -1908,6 +1915,7 @@ Mono> setMetadataWithResponse(Map> uploadRangeWithResponse(ShareFileUploadRange return azureFileStorageClient.getFiles() .uploadRangeWithResponseAsync(shareName, filePath, range.toString(), ShareFileRangeWriteType.UPDATE, options.getLength(), null, null, requestConditions.getLeaseId(), options.getLastWrittenMode(), data, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::uploadRangeHeadersToShareFileInfo); } @@ -2454,6 +2463,7 @@ Mono> uploadRangeFromUrlWithResponse( .uploadRangeFromURLWithResponseAsync(shareName, filePath, destinationRange.toString(), copySource, 0, null, sourceRange.toString(), null, modifiedRequestConditions.getLeaseId(), sourceAuth, options.getLastWrittenMode(), null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::mapUploadRangeFromUrlResponse); } @@ -2565,6 +2575,7 @@ Mono> clearRangeWithResponse(long length, long off return azureFileStorageClient.getFiles() .uploadRangeWithResponseAsync(shareName, filePath, range.toString(), ShareFileRangeWriteType.CLEAR, 0L, null, null, requestConditions.getLeaseId(), null, (Flux) null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(ModelHelper::transformUploadResponse); } @@ -2839,6 +2850,7 @@ Mono> listRangesWithResponse(ShareFileRange range, return this.azureFileStorageClient.getFiles().getRangeListWithResponseAsync(shareName, filePath, snapshot, previousSnapshot, null, rangeString, finalRequestConditions.getLeaseId(), supportRename, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, response.getValue())); } @@ -2900,6 +2912,7 @@ PagedFlux listHandlesWithOptionalTimeout(Integer maxResultsPerPage, marker -> StorageImplUtils.applyOptionalTimeout(this.azureFileStorageClient.getFiles() .listHandlesWithResponseAsync(shareName, filePath, marker, maxResultsPerPage, null, snapshot, context), timeout) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), @@ -2973,6 +2986,7 @@ Mono> forceCloseHandleWithResponse(String handleId, C context = context == null ? Context.NONE : context; return azureFileStorageClient.getFiles() .forceCloseHandlesWithResponseAsync(shareName, filePath, handleId, null, null, snapshot, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, new CloseHandlesInfo(response.getDeserializedHeaders().getXMsNumberOfHandlesClosed(), response.getDeserializedHeaders().getXMsNumberOfHandlesFailed()))); @@ -3015,6 +3029,7 @@ PagedFlux forceCloseAllHandlesWithOptionalTimeout(Duration tim marker -> StorageImplUtils.applyOptionalTimeout(this.azureFileStorageClient.getFiles() .forceCloseHandlesWithResponseAsync(shareName, filePath, "*", null, marker, snapshot, context), timeout) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), @@ -3143,6 +3158,7 @@ Mono> renameWithResponse(ShareFileRenameOptions o null /* timeout */, options.getReplaceIfExists(), options.isIgnoreReadOnly(), options.getFilePermission(), options.getFilePermissionFormat(), filePermissionKey, options.getMetadata(), sourceConditions, destinationConditions, smbInfo, headers, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, destinationFileClient)); } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClient.java index b96e5557f81f..d985c81cc937 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileClient.java @@ -20,7 +20,6 @@ import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.FluxUtil; -import com.azure.core.util.SharedExecutorService; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.LongRunningOperationStatus; import com.azure.core.util.polling.PollResponse; @@ -94,8 +93,6 @@ import java.util.Map; import java.util.Objects; import java.util.concurrent.Callable; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicReference; import java.util.function.BiFunction; import java.util.function.Consumer; @@ -104,6 +101,8 @@ import java.util.stream.Collectors; import static com.azure.storage.common.implementation.StorageImplUtils.sendRequest; +import static com.azure.storage.file.share.implementation.util.ModelHelper.wrapServiceCallWithExceptionMapping; +import static com.azure.storage.file.share.implementation.util.ModelHelper.wrapTimeoutServiceCallWithExceptionMapping; /** * This class provides a client that contains all the operations for interacting files under Azure Storage File Service. @@ -478,10 +477,10 @@ public Response createWithResponse(long maxSize, ShareFileHttpHea String fileCreationTime = smbProperties.setFileCreationTime(FileConstants.FILE_TIME_NOW); String fileLastWriteTime = smbProperties.setFileLastWriteTime(FileConstants.FILE_TIME_NOW); String fileChangeTime = smbProperties.getFileChangeTimeString(); - Callable> operation = () -> + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getFiles().createWithResponse(shareName, filePath, maxSize, fileAttributes, null, metadata, finalFilePermission, null, filePermissionKey, fileCreationTime, - fileLastWriteTime, fileChangeTime, finalRequestConditions.getLeaseId(), httpHeaders, finalContext); + fileLastWriteTime, fileChangeTime, finalRequestConditions.getLeaseId(), httpHeaders, finalContext)); return ModelHelper.createFileInfoResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -552,12 +551,12 @@ public Response createWithResponse(ShareFileCreateOptions options String fileCreationTime = smbProperties.setFileCreationTime(FileConstants.FILE_TIME_NOW); String fileLastWriteTime = smbProperties.setFileLastWriteTime(FileConstants.FILE_TIME_NOW); String fileChangeTime = smbProperties.getFileChangeTimeString(); - Callable> operation = () -> + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getFiles().createWithResponse(shareName, filePath, options.getSize(), fileAttributes, null, options.getMetadata(), finalFilePermission, options.getFilePermissionFormat(), filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, finalRequestConditions.getLeaseId(), options.getShareFileHttpHeaders(), - finalContext); + finalContext)); return ModelHelper.createFileInfoResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -769,10 +768,10 @@ public SyncPoller beginCopy(String sourceUrl, ShareFile Function, PollResponse> syncActivationOperation = (pollingContext) -> { - ResponseBase response = azureFileStorageClient.getFiles() - .startCopyWithResponse(shareName, filePath, copySource, null, + ResponseBase response = wrapServiceCallWithExceptionMapping( + () -> azureFileStorageClient.getFiles().startCopyWithResponse(shareName, filePath, copySource, null, options.getMetadata(), options.getFilePermission(), tempSmbProperties.getFilePermissionKey(), - finalRequestConditions.getLeaseId(), copyFileSmbInfo, null); + finalRequestConditions.getLeaseId(), copyFileSmbInfo, null)); FilesStartCopyHeaders headers = response.getDeserializedHeaders(); copyId.set(headers.getXMsCopyId()); @@ -922,9 +921,9 @@ public Response abortCopyWithResponse(String copyId, ShareRequestCondition Context finalContext = context == null ? Context.NONE : context; ShareRequestConditions finalRequestConditions = requestConditions == null ? new ShareRequestConditions() : requestConditions; - Callable> operation = () -> this.azureFileStorageClient.getFiles() - .abortCopyNoCustomHeadersWithResponse(shareName, filePath, copyId, null, - finalRequestConditions.getLeaseId(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().abortCopyNoCustomHeadersWithResponse(shareName, filePath, + copyId, null, finalRequestConditions.getLeaseId(), finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -1294,9 +1293,9 @@ public Response deleteWithResponse(ShareRequestConditions requestCondition Context finalContext = context == null ? Context.NONE : context; ShareRequestConditions finalRequestConditions = requestConditions == null ? new ShareRequestConditions() : requestConditions; - Callable> operation = () -> this.azureFileStorageClient.getFiles() - .deleteNoCustomHeadersWithResponse(shareName, filePath, null, finalRequestConditions.getLeaseId(), - finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().deleteNoCustomHeadersWithResponse(shareName, filePath, null, + finalRequestConditions.getLeaseId(), finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -1460,9 +1459,9 @@ public Response getPropertiesWithResponse(ShareRequestCondi Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; ShareRequestConditions finalRequestConditions = requestConditions == null ? new ShareRequestConditions() : requestConditions; - Callable> operation = () -> - this.azureFileStorageClient.getFiles().getPropertiesWithResponse(shareName, filePath, snapshot, - null, finalRequestConditions.getLeaseId(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().getPropertiesWithResponse(shareName, filePath, snapshot, + null, finalRequestConditions.getLeaseId(), finalContext)); return ModelHelper.getPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1659,10 +1658,10 @@ public Response setPropertiesWithResponse(long newFileSize, Share String fileCreationTime = smbProperties.setFileCreationTime(FileConstants.PRESERVE); String fileLastWriteTime = smbProperties.setFileLastWriteTime(FileConstants.PRESERVE); String fileChangeTime = smbProperties.getFileChangeTimeString(); - Callable> operation = () -> - this.azureFileStorageClient.getFiles().setHttpHeadersWithResponse(shareName, filePath, fileAttributes, null, - newFileSize, finalFilePermission, null, filePermissionKey, fileCreationTime, fileLastWriteTime, - fileChangeTime, finalRequestConditions.getLeaseId(), httpHeaders, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().setHttpHeadersWithResponse(shareName, filePath, fileAttributes, + null, newFileSize, finalFilePermission, null, filePermissionKey, fileCreationTime, fileLastWriteTime, + fileChangeTime, finalRequestConditions.getLeaseId(), httpHeaders, finalContext)); return ModelHelper.setPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1730,11 +1729,11 @@ public Response setPropertiesWithResponse(ShareFileSetPropertiesO String fileCreationTime = smbProperties.setFileCreationTime(FileConstants.PRESERVE); String fileLastWriteTime = smbProperties.setFileLastWriteTime(FileConstants.PRESERVE); String fileChangeTime = smbProperties.getFileChangeTimeString(); - Callable> operation = () -> - this.azureFileStorageClient.getFiles().setHttpHeadersWithResponse(shareName, filePath, fileAttributes, + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().setHttpHeadersWithResponse(shareName, filePath, fileAttributes, null, options.getSizeInBytes(), finalFilePermission, options.getFilePermissions().getPermissionFormat(), filePermissionKey, fileCreationTime, fileLastWriteTime, fileChangeTime, finalRequestConditions.getLeaseId(), - options.getHttpHeaders(), finalContext); + options.getHttpHeaders(), finalContext)); return ModelHelper.setPropertiesResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -1867,9 +1866,9 @@ public Response setMetadataWithResponse(Map> operation = () -> - this.azureFileStorageClient.getFiles().setMetadataWithResponse(shareName, filePath, null, metadata, - finalRequestConditions.getLeaseId(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().setMetadataWithResponse(shareName, filePath, null, metadata, + finalRequestConditions.getLeaseId(), finalContext)); return ModelHelper.setMetadataResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -2280,11 +2279,11 @@ public Response uploadRangeFromUrlWithResponse( ? null : options.getSourceAuthorization().toString(); String copySource = Utility.encodeUrlPath(options.getSourceUrl()); - Callable> operation = () -> - this.azureFileStorageClient.getFiles() + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getFiles() .uploadRangeFromURLWithResponse(shareName, filePath, destinationRange.toString(), copySource, 0, null, sourceRange.toString(), null, finalRequestConditions.getLeaseId(), sourceAuth, - options.getLastWrittenMode(), null, finalContext); + options.getLastWrittenMode(), null, finalContext)); return ModelHelper.mapUploadRangeFromUrlResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -2386,9 +2385,10 @@ public Response clearRangeWithResponse(long length, long of ? new ShareRequestConditions() : requestConditions; ShareFileRange range = new ShareFileRange(offset, offset + length - 1); Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getFiles() - .uploadRangeWithResponse(shareName, filePath, range.toString(), ShareFileRangeWriteType.CLEAR, 0L, null, - null, finalRequestConditions.getLeaseId(), null, null, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().uploadRangeWithResponse(shareName, filePath, range.toString(), + ShareFileRangeWriteType.CLEAR, 0L, null, null, finalRequestConditions.getLeaseId(), null, null, + finalContext)); return ModelHelper.transformUploadResponse(sendRequest(operation, timeout, ShareStorageException.class)); } @@ -2538,13 +2538,13 @@ public PagedIterable listRanges(ShareFileRange range, ShareReque String rangeString = range == null ? null : range.toString(); try { - Supplier> operation = () -> - this.azureFileStorageClient.getFiles().getRangeListWithResponse(shareName, filePath, snapshot, - null, null, rangeString, finalRequestConditions.getLeaseId(), null, finalContext); + Callable> operation = + wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getFiles() + .getRangeListWithResponse(shareName, filePath, snapshot, null, null, rangeString, + finalRequestConditions.getLeaseId(), null, finalContext)); - ResponseBase response = timeout != null - ? CoreUtils.getResultWithTimeout(SharedExecutorService.getInstance().submit(operation::get), timeout) - : operation.get(); + ResponseBase response + = sendRequest(operation, timeout, ShareStorageException.class); List shareFileRangeList = response.getValue().getRanges().stream() @@ -2559,8 +2559,6 @@ public PagedIterable listRanges(ShareFileRange range, ShareReque } catch (RuntimeException e) { throw LOGGER.logExceptionAsError(e); - } catch (InterruptedException | ExecutionException | TimeoutException e) { - throw LOGGER.logExceptionAsError(new RuntimeException(e)); } } @@ -2632,9 +2630,10 @@ public Response listRangesDiffWithResponse(ShareFileListRang ShareRequestConditions requestConditions = options.getRequestConditions() == null ? new ShareRequestConditions() : options.getRequestConditions(); String rangeString = options.getRange() == null ? null : options.getRange().toString(); - Callable> operation = () -> this.azureFileStorageClient.getFiles() - .getRangeListNoCustomHeadersWithResponse(shareName, filePath, snapshot, options.getPreviousSnapshot(), null, - rangeString, requestConditions.getLeaseId(), options.isRenameIncluded(), finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().getRangeListNoCustomHeadersWithResponse(shareName, filePath, + snapshot, options.getPreviousSnapshot(), null, rangeString, requestConditions.getLeaseId(), + options.isRenameIncluded(), finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -2693,13 +2692,12 @@ public PagedIterable listHandles() { public PagedIterable listHandles(Integer maxResultsPerPage, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; try { - Supplier> operation = () -> - this.azureFileStorageClient.getFiles().listHandlesWithResponse(shareName, filePath, null, - maxResultsPerPage, null, snapshot, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getFiles() + .listHandlesWithResponse(shareName, filePath, null, maxResultsPerPage, null, snapshot, finalContext)); - ResponseBase response = timeout != null - ? CoreUtils.getResultWithTimeout(SharedExecutorService.getInstance().submit(operation::get), timeout) - : operation.get(); + ResponseBase response + = sendRequest(operation, timeout, ShareStorageException.class); Supplier> finalResponse = () -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), @@ -2712,8 +2710,6 @@ public PagedIterable listHandles(Integer maxResultsPerPage, Duration } catch (RuntimeException e) { throw LOGGER.logExceptionAsError(e); - } catch (InterruptedException | ExecutionException | TimeoutException e) { - throw LOGGER.logExceptionAsError(new RuntimeException(e)); } } @@ -2774,9 +2770,9 @@ public CloseHandlesInfo forceCloseHandle(String handleId) { @ServiceMethod(returns = ReturnType.SINGLE) public Response forceCloseHandleWithResponse(String handleId, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> - this.azureFileStorageClient.getFiles().forceCloseHandlesWithResponse(shareName, filePath, handleId, - null, null, snapshot, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getFiles().forceCloseHandlesWithResponse(shareName, filePath, handleId, + null, null, snapshot, finalContext)); ResponseBase response = sendRequest(operation, timeout, ShareStorageException.class); @@ -2813,13 +2809,12 @@ public Response forceCloseHandleWithResponse(String handleId, public CloseHandlesInfo forceCloseAllHandles(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; try { - Supplier> operation = () -> - this.azureFileStorageClient.getFiles().forceCloseHandlesWithResponse(shareName, filePath, "*", null, - null, snapshot, finalContext); + Callable> operation + = wrapTimeoutServiceCallWithExceptionMapping(() -> this.azureFileStorageClient.getFiles() + .forceCloseHandlesWithResponse(shareName, filePath, "*", null, null, snapshot, finalContext)); - ResponseBase response = timeout != null - ? CoreUtils.getResultWithTimeout(SharedExecutorService.getInstance().submit(operation::get), timeout) - : operation.get(); + ResponseBase response + = sendRequest(operation, timeout, ShareStorageException.class); Supplier> finalResponse = () -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), @@ -2835,8 +2830,6 @@ public CloseHandlesInfo forceCloseAllHandles(Duration timeout, Context context) } catch (RuntimeException e) { throw LOGGER.logExceptionAsError(e); - } catch (InterruptedException | ExecutionException | TimeoutException e) { - throw LOGGER.logExceptionAsError(new RuntimeException(e)); } } @@ -2945,12 +2938,12 @@ public Response renameWithResponse(ShareFileRenameOptions optio String finalRenameSource = this.sasToken != null ? renameSource + "?" + this.sasToken.getSignature() : renameSource; - Callable> operation = () -> destinationFileClient.azureFileStorageClient.getFiles() - .renameNoCustomHeadersWithResponse(destinationFileClient.getShareName(), - destinationFileClient.getFilePath(), finalRenameSource, null /* timeout */, - options.getReplaceIfExists(), options.isIgnoreReadOnly(), options.getFilePermission(), - options.getFilePermissionFormat(), finalFilePermissionKey, options.getMetadata(), sourceConditions, - destinationConditions, finalSmbInfo, headers, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> destinationFileClient.azureFileStorageClient.getFiles().renameNoCustomHeadersWithResponse( + destinationFileClient.getShareName(), destinationFileClient.getFilePath(), finalRenameSource, + null /* timeout */, options.getReplaceIfExists(), options.isIgnoreReadOnly(), + options.getFilePermission(), options.getFilePermissionFormat(), finalFilePermissionKey, + options.getMetadata(), sourceConditions, destinationConditions, finalSmbInfo, headers, finalContext)); return new SimpleResponse<>(sendRequest(operation, timeout, ShareStorageException.class), destinationFileClient); diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceAsyncClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceAsyncClient.java index c1efb5e15f21..5958dfe4a8c8 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceAsyncClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceAsyncClient.java @@ -254,6 +254,7 @@ PagedFlux listSharesWithOptionalTimeout(String marker, ListSharesOpti (nextMarker, pageSize) -> StorageImplUtils.applyOptionalTimeout(this.azureFileStorageClient.getServices() .listSharesSegmentSinglePageAsync( prefix, nextMarker, pageSize == null ? maxResultsPerPage : pageSize, include, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> { List value = response.getValue() == null ? Collections.emptyList() @@ -335,6 +336,7 @@ public Mono> getPropertiesWithResponse() { Mono> getPropertiesWithResponse(Context context) { context = context == null ? Context.NONE : context; return azureFileStorageClient.getServices().getPropertiesWithResponseAsync(null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(response -> new SimpleResponse<>(response, response.getValue())); } @@ -456,7 +458,8 @@ public Mono> setPropertiesWithResponse(ShareServiceProperties pro Mono> setPropertiesWithResponse(ShareServiceProperties properties, Context context) { context = context == null ? Context.NONE : context; return azureFileStorageClient.getServices() - .setPropertiesNoCustomHeadersWithResponseAsync(properties, null, context); + .setPropertiesNoCustomHeadersWithResponseAsync(properties, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -657,7 +660,8 @@ Mono> deleteShareWithResponse(String shareName, String snapshot, } context = context == null ? Context.NONE : context; return azureFileStorageClient.getShares() - .deleteNoCustomHeadersWithResponseAsync(shareName, snapshot, null, deleteSnapshots, null, context); + .deleteNoCustomHeadersWithResponseAsync(shareName, snapshot, null, deleteSnapshots, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } /** @@ -854,6 +858,7 @@ Mono> undeleteShareWithResponse( String deletedShareName, String deletedShareVersion, Context context) { return this.azureFileStorageClient.getShares().restoreWithResponseAsync( deletedShareName, null, null, deletedShareName, deletedShareVersion, context) - .map(response -> new SimpleResponse<>(response, getShareAsyncClient(deletedShareName))); + .onErrorMap(ModelHelper::mapToShareStorageException) + .map(response -> new SimpleResponse<>(response, getShareAsyncClient(deletedShareName))); } } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClient.java index 1f68f618ab7f..f09d0d5fcb88 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceClient.java @@ -15,7 +15,6 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; -import com.azure.core.util.SharedExecutorService; import com.azure.core.util.logging.ClientLogger; import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.implementation.AccountSasImplUtil; @@ -39,14 +38,12 @@ import java.util.List; import java.util.Map; import java.util.concurrent.Callable; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.TimeoutException; import java.util.function.BiFunction; import java.util.function.Consumer; -import java.util.function.Supplier; import java.util.stream.Collectors; import static com.azure.storage.common.implementation.StorageImplUtils.sendRequest; +import static com.azure.storage.file.share.implementation.util.ModelHelper.wrapTimeoutServiceCallWithExceptionMapping; /** * This class provides a shareServiceAsyncClient that contains all the operations for interacting with a file account in @@ -222,24 +219,19 @@ public PagedIterable listShares(ListSharesOptions options, Duration t BiFunction> retriever = (nextMarker, pageSize) -> { - Supplier> operation = () -> this.azureFileStorageClient.getServices() - .listSharesSegmentNoCustomHeadersSinglePage(prefix, nextMarker, - pageSize == null ? maxResultsPerPage : pageSize, include, null, finalContext); - - try { - PagedResponse response = timeout != null - ? CoreUtils.getResultWithTimeout(SharedExecutorService.getInstance().submit(operation::get), timeout) - : operation.get(); - - List value = response.getValue() == null ? Collections.emptyList() - : response.getValue().stream().map(ModelHelper::populateShareItem).collect(Collectors.toList()); - - return new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), value, response.getContinuationToken(), - ModelHelper.transformListSharesHeaders(response.getHeaders())); - } catch (InterruptedException | ExecutionException | TimeoutException e) { - throw LOGGER.logExceptionAsError(new RuntimeException("Failed to retrieve shares with timeout.", e)); - } + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getServices().listSharesSegmentNoCustomHeadersSinglePage(prefix, + nextMarker, pageSize == null ? maxResultsPerPage : pageSize, include, null, finalContext)); + + PagedResponse response + = sendRequest(operation, timeout, ShareStorageException.class); + + List value = response.getValue() == null ? Collections.emptyList() + : response.getValue().stream().map(ModelHelper::populateShareItem).collect(Collectors.toList()); + + return new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), + response.getHeaders(), value, response.getContinuationToken(), + ModelHelper.transformListSharesHeaders(response.getHeaders())); }; return new PagedIterable<>(pageSize -> retriever.apply(null, pageSize), retriever); @@ -303,8 +295,9 @@ public ShareServiceProperties getProperties() { @ServiceMethod(returns = ReturnType.SINGLE) public Response getPropertiesWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getServices() - .getPropertiesNoCustomHeadersWithResponse(null, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getServices().getPropertiesNoCustomHeadersWithResponse(null, + finalContext)); Response response = sendRequest(operation, timeout, ShareStorageException.class); return new SimpleResponse<>(response, response.getValue()); @@ -436,8 +429,9 @@ public void setProperties(ShareServiceProperties properties) { public Response setPropertiesWithResponse(ShareServiceProperties properties, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getServices() - .setPropertiesNoCustomHeadersWithResponse(properties, null, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getServices().setPropertiesNoCustomHeadersWithResponse(properties, null, + finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -604,8 +598,9 @@ public Response deleteShareWithResponse(String shareName, String snapshot, Context finalContext = context == null ? Context.NONE : context; DeleteSnapshotsOptionType deleteSnapshots = CoreUtils.isNullOrEmpty(snapshot) ? DeleteSnapshotsOptionType.INCLUDE : null; - Callable> operation = () -> this.azureFileStorageClient.getShares() - .deleteNoCustomHeadersWithResponse(shareName, snapshot, null, deleteSnapshots, null, finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getShares().deleteNoCustomHeadersWithResponse(shareName, snapshot, null, + deleteSnapshots, null, finalContext)); return sendRequest(operation, timeout, ShareStorageException.class); } @@ -798,9 +793,9 @@ public ShareClient undeleteShare(String deletedShareName, String deletedShareVer public Response undeleteShareWithResponse(String deletedShareName, String deletedShareVersion, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Callable> operation = () -> this.azureFileStorageClient.getShares() - .restoreNoCustomHeadersWithResponse(deletedShareName, null, null, deletedShareName, deletedShareVersion, - finalContext); + Callable> operation = wrapTimeoutServiceCallWithExceptionMapping( + () -> this.azureFileStorageClient.getShares().restoreNoCustomHeadersWithResponse(deletedShareName, null, + null, deletedShareName, deletedShareVersion, finalContext)); return new SimpleResponse<>(sendRequest(operation, timeout, ShareStorageException.class), getShareClient(deletedShareName)); diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/DirectoriesImpl.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/DirectoriesImpl.java index ea8f0bc3dabe..419bb52ac882 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/DirectoriesImpl.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/DirectoriesImpl.java @@ -36,9 +36,9 @@ import com.azure.storage.file.share.implementation.models.ListFilesAndDirectoriesSegmentResponse; import com.azure.storage.file.share.implementation.models.ListFilesIncludeType; import com.azure.storage.file.share.implementation.models.ListHandlesResponse; +import com.azure.storage.file.share.implementation.models.ShareStorageExceptionInternal; import com.azure.storage.file.share.implementation.models.SourceLeaseAccessConditions; import com.azure.storage.file.share.models.FilePermissionFormat; -import com.azure.storage.file.share.models.ShareStorageException; import com.azure.storage.file.share.models.ShareTokenIntent; import java.util.List; import java.util.Map; @@ -80,7 +80,7 @@ public final class DirectoriesImpl { public interface DirectoriesService { @Put("/{shareName}/{directory}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -97,7 +97,7 @@ Mono> create(@HostParam("url") Stri @Put("/{shareName}/{directory}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -114,7 +114,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{directory}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase createSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -131,7 +131,7 @@ ResponseBase createSync(@HostParam("url") String @Put("/{shareName}/{directory}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response createNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -148,7 +148,7 @@ Response createNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -159,7 +159,7 @@ Mono> getProperties(@HostPar @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -170,7 +170,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getPropertiesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -181,7 +181,7 @@ ResponseBase getPropertiesSync(@HostParam @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -192,7 +192,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Delete("/{shareName}/{directory}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -202,7 +202,7 @@ Mono> delete(@HostParam("url") Stri @Delete("/{shareName}/{directory}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -212,7 +212,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{shareName}/{directory}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -222,7 +222,7 @@ ResponseBase deleteSync(@HostParam("url") String @Delete("/{shareName}/{directory}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -232,7 +232,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setProperties(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -250,7 +250,7 @@ Mono> setProperties(@HostPar @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -268,7 +268,7 @@ Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setPropertiesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -286,7 +286,7 @@ ResponseBase setPropertiesSync(@HostParam @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -304,7 +304,7 @@ Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setMetadata(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -316,7 +316,7 @@ Mono> setMetadata(@HostParam(" @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -328,7 +328,7 @@ Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setMetadataSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -340,7 +340,7 @@ ResponseBase setMetadataSync(@HostParam("ur @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -352,7 +352,7 @@ Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listFilesAndDirectoriesSegment(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @@ -367,7 +367,7 @@ Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listFilesAndDirectoriesSegmentNoCustomHeaders( @HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @@ -382,7 +382,7 @@ Mono> listFilesAndDirectoriesSe @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase listFilesAndDirectoriesSegmentSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @@ -397,7 +397,7 @@ Mono> listFilesAndDirectoriesSe @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response listFilesAndDirectoriesSegmentNoCustomHeadersSync( @HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @@ -412,7 +412,7 @@ Response listFilesAndDirectoriesSegmentN @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listHandles(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -425,7 +425,7 @@ Mono> listHandl @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listHandlesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -438,7 +438,7 @@ Mono> listHandlesNoCustomHeaders(@HostParam("url") @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase listHandlesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -451,7 +451,7 @@ ResponseBase listHandlesSync @Get("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response listHandlesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -464,7 +464,7 @@ Response listHandlesNoCustomHeadersSync(@HostParam("url") S @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> forceCloseHandles(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -477,7 +477,7 @@ Mono> forceCloseHandles( @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> forceCloseHandlesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -490,7 +490,7 @@ Mono> forceCloseHandlesNoCustomHeaders(@HostParam("url") String u @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase forceCloseHandlesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -503,7 +503,7 @@ ResponseBase forceCloseHandlesSync(@H @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response forceCloseHandlesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -516,7 +516,7 @@ Response forceCloseHandlesNoCustomHeadersSync(@HostParam("url") String url @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> rename(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -541,7 +541,7 @@ Mono> rename(@HostParam("url") Stri @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> renameNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -566,7 +566,7 @@ Mono> renameNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase renameSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -591,7 +591,7 @@ ResponseBase renameSync(@HostParam("url") String @Put("/{shareName}/{directory}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response renameNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("directory") String directory, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -640,7 +640,7 @@ Response renameNoCustomHeadersSync(@HostParam("url") String url, @PathPara * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -684,7 +684,7 @@ public Mono> createWithResponseAsyn * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -727,7 +727,7 @@ public Mono> createWithResponseAsyn * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -767,7 +767,7 @@ public Mono createAsync(String shareName, String directory, String fileAtt * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -807,7 +807,7 @@ public Mono createAsync(String shareName, String directory, String fileAtt * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -851,7 +851,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String shareN * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -895,7 +895,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String shareN * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -938,7 +938,7 @@ public ResponseBase createWithResponse(String sh * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -976,7 +976,7 @@ public void create(String shareName, String directory, String fileAttributes, In * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1005,7 +1005,7 @@ public Response createNoCustomHeadersWithResponse(String shareName, String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1032,7 +1032,7 @@ public Mono> getPropertiesWi * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1058,7 +1058,7 @@ public Mono> getPropertiesWi * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1081,7 +1081,7 @@ public Mono getPropertiesAsync(String shareName, String directory, String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1104,7 +1104,7 @@ public Mono getPropertiesAsync(String shareName, String directory, String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1131,7 +1131,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1158,7 +1158,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1184,7 +1184,7 @@ public ResponseBase getPropertiesWithResp * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1205,7 +1205,7 @@ public void getProperties(String shareName, String directory, String sharesnapsh * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1228,7 +1228,7 @@ public Response getPropertiesNoCustomHeadersWithResponse(String shareName, * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1252,7 +1252,7 @@ public Mono> deleteWithResponseAsyn * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1274,7 +1274,7 @@ public Mono> deleteWithResponseAsyn * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1293,7 +1293,7 @@ public Mono deleteAsync(String shareName, String directory, Integer timeou * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1311,7 +1311,7 @@ public Mono deleteAsync(String shareName, String directory, Integer timeou * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1335,7 +1335,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String shareN * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1359,7 +1359,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String shareN * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1381,7 +1381,7 @@ public ResponseBase deleteWithResponse(String sh * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1399,7 +1399,7 @@ public void delete(String shareName, String directory, Integer timeout) { * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1438,7 +1438,7 @@ public Response deleteNoCustomHeadersWithResponse(String shareName, String * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1482,7 +1482,7 @@ public Mono> setPropertiesWi * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1525,7 +1525,7 @@ public Mono> setPropertiesWi * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1564,7 +1564,7 @@ public Mono setPropertiesAsync(String shareName, String directory, String * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1602,7 +1602,7 @@ public Mono setPropertiesAsync(String shareName, String directory, String * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1645,7 +1645,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync(String * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1689,7 +1689,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync(String * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1732,7 +1732,7 @@ public ResponseBase setPropertiesWithResp * @param fileLastWriteTime Last write time for the file/directory. Default value: Now. * @param fileChangeTime Change time for the file/directory. Default value: Now. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1769,7 +1769,7 @@ public void setProperties(String shareName, String directory, String fileAttribu * @param fileChangeTime Change time for the file/directory. Default value: Now. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1797,7 +1797,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(String shareName, * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1823,7 +1823,7 @@ public Mono> setMetadataWithRe * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1848,7 +1848,7 @@ public Mono> setMetadataWithRe * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1869,7 +1869,7 @@ public Mono setMetadataAsync(String shareName, String directory, Integer t * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1890,7 +1890,7 @@ public Mono setMetadataAsync(String shareName, String directory, Integer t * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1916,7 +1916,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String s * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1942,7 +1942,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String s * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1967,7 +1967,7 @@ public ResponseBase setMetadataWithResponse * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1986,7 +1986,7 @@ public void setMetadata(String shareName, String directory, Integer timeout, Map * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2022,7 +2022,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, S * @param include Include this parameter to specify one or more datasets to include in the response. * @param includeExtendedInfo Include extended information. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -2068,7 +2068,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, S * @param includeExtendedInfo Include extended information. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -2112,7 +2112,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, S * @param include Include this parameter to specify one or more datasets to include in the response. * @param includeExtendedInfo Include extended information. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files on successful completion of {@link Mono}. */ @@ -2146,7 +2146,7 @@ public Mono listFilesAndDirectoriesSegme * @param includeExtendedInfo Include extended information. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files on successful completion of {@link Mono}. */ @@ -2180,7 +2180,7 @@ public Mono listFilesAndDirectoriesSegme * @param include Include this parameter to specify one or more datasets to include in the response. * @param includeExtendedInfo Include extended information. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files along with {@link Response} on successful completion of * {@link Mono}. @@ -2227,7 +2227,7 @@ public Mono listFilesAndDirectoriesSegme * @param includeExtendedInfo Include extended information. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files along with {@link Response} on successful completion of * {@link Mono}. @@ -2273,7 +2273,7 @@ public Mono listFilesAndDirectoriesSegme * @param includeExtendedInfo Include extended information. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files along with {@link ResponseBase}. */ @@ -2316,7 +2316,7 @@ public Mono listFilesAndDirectoriesSegme * @param include Include this parameter to specify one or more datasets to include in the response. * @param includeExtendedInfo Include extended information. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files. */ @@ -2350,7 +2350,7 @@ public ListFilesAndDirectoriesSegmentResponse listFilesAndDirectoriesSegment(Str * @param includeExtendedInfo Include extended information. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of directories and files along with {@link Response}. */ @@ -2391,7 +2391,7 @@ public Response listFilesAndDirectoriesS * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2426,7 +2426,7 @@ public Mono> li * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2460,7 +2460,7 @@ public Mono> li * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles on successful completion of {@link Mono}. */ @@ -2491,7 +2491,7 @@ public Mono listHandlesAsync(String shareName, String direc * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles on successful completion of {@link Mono}. */ @@ -2521,7 +2521,7 @@ public Mono listHandlesAsync(String shareName, String direc * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link Response} on successful completion of {@link Mono}. */ @@ -2555,7 +2555,7 @@ public Mono> listHandlesNoCustomHeadersWithRespons * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link Response} on successful completion of {@link Mono}. */ @@ -2590,7 +2590,7 @@ public Mono> listHandlesNoCustomHeadersWithRespons * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link ResponseBase}. */ @@ -2624,7 +2624,7 @@ public ResponseBase listHand * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles. */ @@ -2655,7 +2655,7 @@ public ListHandlesResponse listHandles(String shareName, String directory, Strin * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link Response}. */ @@ -2688,7 +2688,7 @@ public Response listHandlesNoCustomHeadersWithResponse(Stri * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2723,7 +2723,7 @@ public Mono> forceCloseH * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2757,7 +2757,7 @@ public Mono> forceCloseH * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2788,7 +2788,7 @@ public Mono forceCloseHandlesAsync(String shareName, String directory, Str * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2818,7 +2818,7 @@ public Mono forceCloseHandlesAsync(String shareName, String directory, Str * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2852,7 +2852,7 @@ public Mono> forceCloseHandlesNoCustomHeadersWithResponseAsync(St * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2886,7 +2886,7 @@ public Mono> forceCloseHandlesNoCustomHeadersWithResponseAsync(St * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2920,7 +2920,7 @@ public ResponseBase forceCloseHandles * @param recursive Specifies operation should apply to the directory specified in the URI, its files, its * subdirectories and their files. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2950,7 +2950,7 @@ public void forceCloseHandles(String shareName, String directory, String handleI * subdirectories and their files. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2997,7 +2997,7 @@ public Response forceCloseHandlesNoCustomHeadersWithResponse(String shareN * @param destinationLeaseAccessConditions Parameter group. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3081,7 +3081,7 @@ public Mono> renameWithResponseAsyn * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3165,7 +3165,7 @@ public Mono> renameWithResponseAsyn * @param destinationLeaseAccessConditions Parameter group. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3214,7 +3214,7 @@ public Mono renameAsync(String shareName, String directory, String renameS * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3263,7 +3263,7 @@ public Mono renameAsync(String shareName, String directory, String renameS * @param destinationLeaseAccessConditions Parameter group. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3347,7 +3347,7 @@ public Mono> renameNoCustomHeadersWithResponseAsync(String shareN * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3432,7 +3432,7 @@ public Mono> renameNoCustomHeadersWithResponseAsync(String shareN * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -3516,7 +3516,7 @@ public ResponseBase renameWithResponse(String sh * @param destinationLeaseAccessConditions Parameter group. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3564,7 +3564,7 @@ public void rename(String shareName, String directory, String renameSource, Inte * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/FilesImpl.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/FilesImpl.java index b12411d44745..28a5606f1834 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/FilesImpl.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/FilesImpl.java @@ -49,13 +49,13 @@ import com.azure.storage.file.share.implementation.models.FilesUploadRangeHeaders; import com.azure.storage.file.share.implementation.models.ListHandlesResponse; import com.azure.storage.file.share.implementation.models.ShareFileRangeWriteType; +import com.azure.storage.file.share.implementation.models.ShareStorageExceptionInternal; import com.azure.storage.file.share.implementation.models.SourceLeaseAccessConditions; import com.azure.storage.file.share.models.FileLastWrittenMode; import com.azure.storage.file.share.models.FilePermissionFormat; import com.azure.storage.file.share.models.PermissionCopyModeType; import com.azure.storage.file.share.models.ShareFileHttpHeaders; import com.azure.storage.file.share.models.ShareFileRangeList; -import com.azure.storage.file.share.models.ShareStorageException; import com.azure.storage.file.share.models.ShareTokenIntent; import com.azure.storage.file.share.models.SourceModifiedAccessConditions; import java.io.InputStream; @@ -97,7 +97,7 @@ public final class FilesImpl { public interface FilesService { @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -120,7 +120,7 @@ Mono> create(@HostParam("url") String url @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -143,7 +143,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase createSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -166,7 +166,7 @@ ResponseBase createSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response createNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -189,7 +189,7 @@ Response createNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono>> download(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -201,7 +201,7 @@ Mono>> download(@HostParam(" @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono downloadNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -213,7 +213,7 @@ Mono downloadNoCustomHeaders(@HostParam("url") String url, @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase downloadSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -225,7 +225,7 @@ ResponseBase downloadSync(@HostParam("url") S @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200, 206 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response downloadNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -237,7 +237,7 @@ Response downloadNoCustomHeadersSync(@HostParam("url") String url, @Head("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -248,7 +248,7 @@ Mono> getProperties(@HostParam("ur @Head("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -259,7 +259,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Head("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getPropertiesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -270,7 +270,7 @@ ResponseBase getPropertiesSync(@HostParam("url" @Head("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @@ -281,7 +281,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Delete("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -291,7 +291,7 @@ Mono> delete(@HostParam("url") String url @Delete("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -301,7 +301,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @@ -311,7 +311,7 @@ ResponseBase deleteSync(@HostParam("url") String url, @Delete("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @HeaderParam("x-ms-allow-trailing-dot") Boolean allowTrailingDot, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -321,7 +321,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setHttpHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -344,7 +344,7 @@ Mono> setHttpHeaders(@HostParam(" @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setHttpHeadersNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -367,7 +367,7 @@ Mono> setHttpHeadersNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setHttpHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -390,7 +390,7 @@ ResponseBase setHttpHeadersSync(@HostParam("ur @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setHttpHeadersNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -413,7 +413,7 @@ Response setHttpHeadersNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> uploadRange(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -428,7 +428,7 @@ Mono> uploadRange(@HostParam("url") @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> uploadRangeNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -443,7 +443,7 @@ Mono> uploadRangeNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> uploadRange(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -458,7 +458,7 @@ Mono> uploadRange(@HostParam("url") @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> uploadRangeNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -473,7 +473,7 @@ Mono> uploadRangeNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase uploadRangeSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -488,7 +488,7 @@ ResponseBase uploadRangeSync(@HostParam("url") St @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response uploadRangeNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -503,7 +503,7 @@ Response uploadRangeNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setMetadata(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -515,7 +515,7 @@ Mono> setMetadata(@HostParam("url") @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -527,7 +527,7 @@ Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setMetadataSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -539,7 +539,7 @@ ResponseBase setMetadataSync(@HostParam("url") St @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -551,7 +551,7 @@ Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> acquireLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -564,7 +564,7 @@ Mono> acquireLease(@HostParam("url" @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -577,7 +577,7 @@ Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase acquireLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -590,7 +590,7 @@ ResponseBase acquireLeaseSync(@HostParam("url") @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response acquireLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -603,7 +603,7 @@ Response acquireLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> releaseLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -615,7 +615,7 @@ Mono> releaseLease(@HostParam("url" @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -627,7 +627,7 @@ Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase releaseLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -639,7 +639,7 @@ ResponseBase releaseLeaseSync(@HostParam("url") @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response releaseLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -651,7 +651,7 @@ Response releaseLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> changeLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -664,7 +664,7 @@ Mono> changeLease(@HostParam("url") @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -677,7 +677,7 @@ Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase changeLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -690,7 +690,7 @@ ResponseBase changeLeaseSync(@HostParam("url") St @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response changeLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -703,7 +703,7 @@ Response changeLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> breakLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -715,7 +715,7 @@ Mono> breakLease(@HostParam("url") St @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -727,7 +727,7 @@ Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase breakLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -739,7 +739,7 @@ ResponseBase breakLeaseSync(@HostParam("url") Stri @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response breakLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @@ -751,7 +751,7 @@ Response breakLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> uploadRangeFromURL(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -771,7 +771,7 @@ Mono> uploadRangeFromURL(@Hos @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> uploadRangeFromURLNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -791,7 +791,7 @@ Mono> uploadRangeFromURLNoCustomHeaders(@HostParam("url") String @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase uploadRangeFromURLSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -811,7 +811,7 @@ ResponseBase uploadRangeFromURLSync(@HostP @Put("/{shareName}/{fileName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response uploadRangeFromURLNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -831,7 +831,7 @@ Response uploadRangeFromURLNoCustomHeadersSync(@HostParam("url") String ur @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getRangeList(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("sharesnapshot") String sharesnapshot, @@ -845,7 +845,7 @@ Mono> getRangeList(@H @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getRangeListNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("sharesnapshot") String sharesnapshot, @@ -859,7 +859,7 @@ Mono> getRangeListNoCustomHeaders(@HostParam("url") @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getRangeListSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("sharesnapshot") String sharesnapshot, @@ -873,7 +873,7 @@ ResponseBase getRangeListSync(@Hos @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getRangeListNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("sharesnapshot") String sharesnapshot, @@ -887,7 +887,7 @@ Response getRangeListNoCustomHeadersSync(@HostParam("url") S @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> startCopy(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -909,7 +909,7 @@ Mono> startCopy(@HostParam("url") Stri @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> startCopyNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -931,7 +931,7 @@ Mono> startCopyNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase startCopySync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -953,7 +953,7 @@ ResponseBase startCopySync(@HostParam("url") String @Put("/{shareName}/{fileName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response startCopyNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -975,7 +975,7 @@ Response startCopyNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> abortCopy(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("copyid") String copyId, @@ -987,7 +987,7 @@ Mono> abortCopy(@HostParam("url") Stri @Put("/{shareName}/{fileName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> abortCopyNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("copyid") String copyId, @@ -999,7 +999,7 @@ Mono> abortCopyNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase abortCopySync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("copyid") String copyId, @@ -1011,7 +1011,7 @@ ResponseBase abortCopySync(@HostParam("url") String @Put("/{shareName}/{fileName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response abortCopyNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("copyid") String copyId, @@ -1023,7 +1023,7 @@ Response abortCopyNoCustomHeadersSync(@HostParam("url") String url, @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listHandles(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -1035,7 +1035,7 @@ Mono> listHandles(@Ho @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listHandlesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -1047,7 +1047,7 @@ Mono> listHandlesNoCustomHeaders(@HostParam("url") @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase listHandlesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -1059,7 +1059,7 @@ ResponseBase listHandlesSync(@Host @Get("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response listHandlesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("marker") String marker, @@ -1071,7 +1071,7 @@ Response listHandlesNoCustomHeadersSync(@HostParam("url") S @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> forceCloseHandles(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1083,7 +1083,7 @@ Mono> forceCloseHandles(@HostP @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> forceCloseHandlesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1095,7 +1095,7 @@ Mono> forceCloseHandlesNoCustomHeaders(@HostParam("url") String u @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase forceCloseHandlesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1107,7 +1107,7 @@ ResponseBase forceCloseHandlesSync(@HostPar @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response forceCloseHandlesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1119,7 +1119,7 @@ Response forceCloseHandlesNoCustomHeadersSync(@HostParam("url") String url @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> rename(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1144,7 +1144,7 @@ Mono> rename(@HostParam("url") String url @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> renameNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1169,7 +1169,7 @@ Mono> renameNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase renameSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -1194,7 +1194,7 @@ ResponseBase renameSync(@HostParam("url") String url, @Put("/{shareName}/{fileName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response renameNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @PathParam("fileName") String fileName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -1247,7 +1247,7 @@ Response renameNoCustomHeadersSync(@HostParam("url") String url, @PathPara * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1327,7 +1327,7 @@ public Mono> createWithResponseAsync(Stri * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1406,7 +1406,7 @@ public Mono> createWithResponseAsync(Stri * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1450,7 +1450,7 @@ public Mono createAsync(String shareName, String fileName, long fileConten * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1493,7 +1493,7 @@ public Mono createAsync(String shareName, String fileName, long fileConten * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1573,7 +1573,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String shareN * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1653,7 +1653,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String shareN * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1732,7 +1732,7 @@ public ResponseBase createWithResponse(String shareNam * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1775,7 +1775,7 @@ public void create(String shareName, String fileName, long fileContentLength, St * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1838,7 +1838,7 @@ public Response createNoCustomHeadersWithResponse(String shareName, String * service returns the MD5 hash for the range, as long as the range is less than or equal to 4 MB in size. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1865,7 +1865,7 @@ public Mono>> downloadWithRe * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1891,7 +1891,7 @@ public Mono>> downloadWithRe * service returns the MD5 hash for the range, as long as the range is less than or equal to 4 MB in size. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1916,7 +1916,7 @@ public Flux downloadAsync(String shareName, String fileName, Integer * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -1940,7 +1940,7 @@ public Flux downloadAsync(String shareName, String fileName, Integer * service returns the MD5 hash for the range, as long as the range is less than or equal to 4 MB in size. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1967,7 +1967,7 @@ public Mono downloadNoCustomHeadersWithResponseAsync(String shar * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -1994,7 +1994,7 @@ public Mono downloadNoCustomHeadersWithResponseAsync(String shar * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link ResponseBase}. */ @@ -2020,7 +2020,7 @@ public ResponseBase downloadWithResponse(Stri * service returns the MD5 hash for the range, as long as the range is less than or equal to 4 MB in size. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -2045,7 +2045,7 @@ public InputStream download(String shareName, String fileName, Integer timeout, * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response}. */ @@ -2071,7 +2071,7 @@ public Response downloadNoCustomHeadersWithResponse(String shareNam * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2098,7 +2098,7 @@ public Mono> getPropertiesWithResp * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2124,7 +2124,7 @@ public Mono> getPropertiesWithResp * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2149,7 +2149,7 @@ public Mono getPropertiesAsync(String shareName, String fileName, String s * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2173,7 +2173,7 @@ public Mono getPropertiesAsync(String shareName, String fileName, String s * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2200,7 +2200,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2227,7 +2227,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2253,7 +2253,7 @@ public ResponseBase getPropertiesWithResponse(S * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2276,7 +2276,7 @@ public void getProperties(String shareName, String fileName, String sharesnapsho * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2299,7 +2299,7 @@ public Response getPropertiesNoCustomHeadersWithResponse(String shareName, * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2323,7 +2323,7 @@ public Mono> deleteWithResponseAsync(Stri * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2345,7 +2345,7 @@ public Mono> deleteWithResponseAsync(Stri * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2365,7 +2365,7 @@ public Mono deleteAsync(String shareName, String fileName, Integer timeout * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2384,7 +2384,7 @@ public Mono deleteAsync(String shareName, String fileName, Integer timeout * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2408,7 +2408,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String shareN * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2432,7 +2432,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String shareN * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2454,7 +2454,7 @@ public ResponseBase deleteWithResponse(String shareNam * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2473,7 +2473,7 @@ public void delete(String shareName, String fileName, Integer timeout, String le * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2515,7 +2515,7 @@ public Response deleteNoCustomHeadersWithResponse(String shareName, String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2594,7 +2594,7 @@ public Mono> setHttpHeadersWithRe * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2673,7 +2673,7 @@ public Mono> setHttpHeadersWithRe * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2717,7 +2717,7 @@ public Mono setHttpHeadersAsync(String shareName, String fileName, String * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2760,7 +2760,7 @@ public Mono setHttpHeadersAsync(String shareName, String fileName, String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2840,7 +2840,7 @@ public Mono> setHttpHeadersNoCustomHeadersWithResponseAsync(Strin * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2920,7 +2920,7 @@ public Mono> setHttpHeadersNoCustomHeadersWithResponseAsync(Strin * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2999,7 +2999,7 @@ public ResponseBase setHttpHeadersWithResponse * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3042,7 +3042,7 @@ public void setHttpHeaders(String shareName, String fileName, String fileAttribu * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -3119,7 +3119,7 @@ public Response setHttpHeadersNoCustomHeadersWithResponse(String shareName * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3164,7 +3164,7 @@ public Mono> uploadRangeWithResponse * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3208,7 +3208,7 @@ public Mono> uploadRangeWithResponse * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3248,7 +3248,7 @@ public Mono uploadRangeAsync(String shareName, String fileName, String ran * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3287,7 +3287,7 @@ public Mono uploadRangeAsync(String shareName, String fileName, String ran * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3332,7 +3332,7 @@ public Mono> uploadRangeNoCustomHeadersWithResponseAsync(String s * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3375,7 +3375,7 @@ public Mono> uploadRangeNoCustomHeadersWithResponseAsync(String s * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3420,7 +3420,7 @@ public Mono> uploadRangeWithResponse * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3464,7 +3464,7 @@ public Mono> uploadRangeWithResponse * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3504,7 +3504,7 @@ public Mono uploadRangeAsync(String shareName, String fileName, String ran * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3543,7 +3543,7 @@ public Mono uploadRangeAsync(String shareName, String fileName, String ran * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3588,7 +3588,7 @@ public Mono> uploadRangeNoCustomHeadersWithResponseAsync(String s * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3632,7 +3632,7 @@ public Mono> uploadRangeNoCustomHeadersWithResponseAsync(String s * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -3675,7 +3675,7 @@ public ResponseBase uploadRangeWithResponse(Strin * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param optionalbody Initial data. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3714,7 +3714,7 @@ public void uploadRange(String shareName, String fileName, String range, ShareFi * @param optionalbody Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -3741,7 +3741,7 @@ public Response uploadRangeNoCustomHeadersWithResponse(String shareName, S * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3767,7 +3767,7 @@ public Mono> setMetadataWithResponse * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3792,7 +3792,7 @@ public Mono> setMetadataWithResponse * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3815,7 +3815,7 @@ public Mono setMetadataAsync(String shareName, String fileName, Integer ti * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3837,7 +3837,7 @@ public Mono setMetadataAsync(String shareName, String fileName, Integer ti * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3863,7 +3863,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String s * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3889,7 +3889,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String s * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -3914,7 +3914,7 @@ public ResponseBase setMetadataWithResponse(Strin * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3935,7 +3935,7 @@ public void setMetadata(String shareName, String fileName, Integer timeout, Map< * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -3966,7 +3966,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, S * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3999,7 +3999,7 @@ public Mono> acquireLeaseWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4031,7 +4031,7 @@ public Mono> acquireLeaseWithRespon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4060,7 +4060,7 @@ public Mono acquireLeaseAsync(String shareName, String fileName, Integer t * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4088,7 +4088,7 @@ public Mono acquireLeaseAsync(String shareName, String fileName, Integer t * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4121,7 +4121,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4154,7 +4154,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4186,7 +4186,7 @@ public ResponseBase acquireLeaseWithResponse(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4213,7 +4213,7 @@ public void acquireLease(String shareName, String fileName, Integer timeout, Int * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4240,7 +4240,7 @@ public Response acquireLeaseNoCustomHeadersWithResponse(String shareName, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4268,7 +4268,7 @@ public Mono> releaseLeaseWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4295,7 +4295,7 @@ public Mono> releaseLeaseWithRespon * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4319,7 +4319,7 @@ public Mono releaseLeaseAsync(String shareName, String fileName, String le * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4342,7 +4342,7 @@ public Mono releaseLeaseAsync(String shareName, String fileName, String le * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4370,7 +4370,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4398,7 +4398,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4425,7 +4425,7 @@ public ResponseBase releaseLeaseWithResponse(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4446,7 +4446,7 @@ public void releaseLease(String shareName, String fileName, String leaseId, Inte * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4476,7 +4476,7 @@ public Response releaseLeaseNoCustomHeadersWithResponse(String shareName, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4507,7 +4507,7 @@ public Mono> changeLeaseWithResponse * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4537,7 +4537,7 @@ public Mono> changeLeaseWithResponse * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4564,7 +4564,7 @@ public Mono changeLeaseAsync(String shareName, String fileName, String lea * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4590,7 +4590,7 @@ public Mono changeLeaseAsync(String shareName, String fileName, String lea * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4621,7 +4621,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String s * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4652,7 +4652,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String s * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4682,7 +4682,7 @@ public ResponseBase changeLeaseWithResponse(Strin * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4707,7 +4707,7 @@ public void changeLease(String shareName, String fileName, String leaseId, Integ * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4734,7 +4734,7 @@ public Response changeLeaseNoCustomHeadersWithResponse(String shareName, S * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4762,7 +4762,7 @@ public Mono> breakLeaseWithResponseAs * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4789,7 +4789,7 @@ public Mono> breakLeaseWithResponseAs * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4813,7 +4813,7 @@ public Mono breakLeaseAsync(String shareName, String fileName, Integer tim * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4836,7 +4836,7 @@ public Mono breakLeaseAsync(String shareName, String fileName, Integer tim * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4864,7 +4864,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String sh * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4892,7 +4892,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String sh * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4919,7 +4919,7 @@ public ResponseBase breakLeaseWithResponse(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4940,7 +4940,7 @@ public void breakLease(String shareName, String fileName, Integer timeout, Strin * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4981,7 +4981,7 @@ public Response breakLeaseNoCustomHeadersWithResponse(String shareName, St * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param sourceModifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5041,7 +5041,7 @@ public Mono> uploadRangeFromU * @param sourceModifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5100,7 +5100,7 @@ public Mono> uploadRangeFromU * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param sourceModifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5141,7 +5141,7 @@ public Mono uploadRangeFromURLAsync(String shareName, String fileName, Str * @param sourceModifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5181,7 +5181,7 @@ public Mono uploadRangeFromURLAsync(String shareName, String fileName, Str * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param sourceModifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5241,7 +5241,7 @@ public Mono> uploadRangeFromURLNoCustomHeadersWithResponseAsync(S * @param sourceModifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5301,7 +5301,7 @@ public Mono> uploadRangeFromURLNoCustomHeadersWithResponseAsync(S * @param sourceModifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -5360,7 +5360,7 @@ public ResponseBase uploadRangeFromURLWith * @param fileLastWrittenMode If the file last write time should be preserved or overwritten. * @param sourceModifiedAccessConditions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5400,7 +5400,7 @@ public void uploadRangeFromURL(String shareName, String fileName, String range, * @param sourceModifiedAccessConditions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -5452,7 +5452,7 @@ public Response uploadRangeFromURLNoCustomHeadersWithResponse(String share * will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The * default value is false. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5488,7 +5488,7 @@ public Mono> getRange * default value is false. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5523,7 +5523,7 @@ public Mono> getRange * will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The * default value is false. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges on successful completion of {@link Mono}. */ @@ -5555,7 +5555,7 @@ public Mono getRangeListAsync(String shareName, String fileN * default value is false. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges on successful completion of {@link Mono}. */ @@ -5587,7 +5587,7 @@ public Mono getRangeListAsync(String shareName, String fileN * will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The * default value is false. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges along with {@link Response} on successful completion of {@link Mono}. */ @@ -5623,7 +5623,7 @@ public Mono> getRangeListNoCustomHeadersWithRespons * default value is false. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges along with {@link Response} on successful completion of {@link Mono}. */ @@ -5659,7 +5659,7 @@ public Mono> getRangeListNoCustomHeadersWithRespons * default value is false. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges along with {@link ResponseBase}. */ @@ -5694,7 +5694,7 @@ public ResponseBase getRangeListWi * will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The * default value is false. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges. */ @@ -5726,7 +5726,7 @@ public ShareFileRangeList getRangeList(String shareName, String fileName, String * default value is false. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of file ranges along with {@link Response}. */ @@ -5765,7 +5765,7 @@ public Response getRangeListNoCustomHeadersWithResponse(Stri * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5841,7 +5841,7 @@ public Mono> startCopyWithResponseAsyn * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -5916,7 +5916,7 @@ public Mono> startCopyWithResponseAsyn * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5953,7 +5953,7 @@ public Mono startCopyAsync(String shareName, String fileName, String copyS * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5989,7 +5989,7 @@ public Mono startCopyAsync(String shareName, String fileName, String copyS * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6065,7 +6065,7 @@ public Mono> startCopyNoCustomHeadersWithResponseAsync(String sha * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6141,7 +6141,7 @@ public Mono> startCopyNoCustomHeadersWithResponseAsync(String sha * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -6216,7 +6216,7 @@ public ResponseBase startCopyWithResponse(String sh * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param copyFileSmbInfo Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6252,7 +6252,7 @@ public void startCopy(String shareName, String fileName, String copySource, Inte * @param copyFileSmbInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -6314,7 +6314,7 @@ public Response startCopyNoCustomHeadersWithResponse(String shareName, Str * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6341,7 +6341,7 @@ public Mono> abortCopyWithResponseAsyn * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6367,7 +6367,7 @@ public Mono> abortCopyWithResponseAsyn * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6390,7 +6390,7 @@ public Mono abortCopyAsync(String shareName, String fileName, String copyI * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6412,7 +6412,7 @@ public Mono abortCopyAsync(String shareName, String fileName, String copyI * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6439,7 +6439,7 @@ public Mono> abortCopyNoCustomHeadersWithResponseAsync(String sha * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6466,7 +6466,7 @@ public Mono> abortCopyNoCustomHeadersWithResponseAsync(String sha * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -6492,7 +6492,7 @@ public ResponseBase abortCopyWithResponse(String sh * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -6512,7 +6512,7 @@ public void abortCopy(String shareName, String fileName, String copyId, Integer * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -6544,7 +6544,7 @@ public Response abortCopyNoCustomHeadersWithResponse(String shareName, Str * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6576,7 +6576,7 @@ public Mono> listHand * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6608,7 +6608,7 @@ public Mono> listHand * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles on successful completion of {@link Mono}. */ @@ -6637,7 +6637,7 @@ public Mono listHandlesAsync(String shareName, String fileN * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles on successful completion of {@link Mono}. */ @@ -6665,7 +6665,7 @@ public Mono listHandlesAsync(String shareName, String fileN * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link Response} on successful completion of {@link Mono}. */ @@ -6697,7 +6697,7 @@ public Mono> listHandlesNoCustomHeadersWithRespons * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link Response} on successful completion of {@link Mono}. */ @@ -6729,7 +6729,7 @@ public Mono> listHandlesNoCustomHeadersWithRespons * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link ResponseBase}. */ @@ -6760,7 +6760,7 @@ public ResponseBase listHandlesWit * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles. */ @@ -6789,7 +6789,7 @@ public ListHandlesResponse listHandles(String shareName, String fileName, String * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of handles along with {@link Response}. */ @@ -6820,7 +6820,7 @@ public Response listHandlesNoCustomHeadersWithResponse(Stri * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6852,7 +6852,7 @@ public Mono> forceCloseHandles * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -6883,7 +6883,7 @@ public Mono> forceCloseHandles * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6912,7 +6912,7 @@ public Mono forceCloseHandlesAsync(String shareName, String fileName, Stri * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -6940,7 +6940,7 @@ public Mono forceCloseHandlesAsync(String shareName, String fileName, Stri * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -6972,7 +6972,7 @@ public Mono> forceCloseHandlesNoCustomHeadersWithResponseAsync(St * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -7004,7 +7004,7 @@ public Mono> forceCloseHandlesNoCustomHeadersWithResponseAsync(St * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -7035,7 +7035,7 @@ public ResponseBase forceCloseHandlesWithRe * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -7062,7 +7062,7 @@ public void forceCloseHandles(String shareName, String fileName, String handleId * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -7110,7 +7110,7 @@ public Response forceCloseHandlesNoCustomHeadersWithResponse(String shareN * @param copyFileSmbInfo Parameter group. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -7200,7 +7200,7 @@ public Mono> renameWithResponseAsync(Stri * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -7289,7 +7289,7 @@ public Mono> renameWithResponseAsync(Stri * @param copyFileSmbInfo Parameter group. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -7340,7 +7340,7 @@ public Mono renameAsync(String shareName, String fileName, String renameSo * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -7391,7 +7391,7 @@ public Mono renameAsync(String shareName, String fileName, String renameSo * @param copyFileSmbInfo Parameter group. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -7481,7 +7481,7 @@ public Mono> renameNoCustomHeadersWithResponseAsync(String shareN * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -7571,7 +7571,7 @@ public Mono> renameNoCustomHeadersWithResponseAsync(String shareN * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -7660,7 +7660,7 @@ public ResponseBase renameWithResponse(String shareNam * @param copyFileSmbInfo Parameter group. * @param shareFileHttpHeaders Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -7709,7 +7709,7 @@ public void rename(String shareName, String fileName, String renameSource, Integ * @param shareFileHttpHeaders Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/ServicesImpl.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/ServicesImpl.java index 5b0fd7acc128..ee0672054ca1 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/ServicesImpl.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/ServicesImpl.java @@ -33,8 +33,8 @@ import com.azure.storage.file.share.implementation.models.ServicesListSharesSegmentNextHeaders; import com.azure.storage.file.share.implementation.models.ServicesSetPropertiesHeaders; import com.azure.storage.file.share.implementation.models.ShareItemInternal; +import com.azure.storage.file.share.implementation.models.ShareStorageExceptionInternal; import com.azure.storage.file.share.models.ShareServiceProperties; -import com.azure.storage.file.share.models.ShareStorageException; import com.azure.storage.file.share.models.ShareTokenIntent; import java.util.List; import java.util.Objects; @@ -74,7 +74,7 @@ public final class ServicesImpl { public interface ServicesService { @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setProperties(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -84,7 +84,7 @@ Mono> setProperties(@HostParam( @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -94,7 +94,7 @@ Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setPropertiesSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -104,7 +104,7 @@ ResponseBase setPropertiesSync(@HostParam("u @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -114,7 +114,7 @@ Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getProperties( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -123,7 +123,7 @@ Mono> getProp @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -132,7 +132,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam(" @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getPropertiesSync( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -141,7 +141,7 @@ ResponseBase getProperties @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -150,7 +150,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("ur @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listSharesSegment( @HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @@ -161,7 +161,7 @@ Mono> listSha @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listSharesSegmentNoCustomHeaders(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @QueryParam("include") String include, @@ -171,7 +171,7 @@ Mono> listSharesSegmentNoCustomHeaders(@HostParam(" @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase listSharesSegmentSync( @HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @@ -182,7 +182,7 @@ ResponseBase listSharesSeg @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response listSharesSegmentNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @QueryParam("include") String include, @@ -192,7 +192,7 @@ Response listSharesSegmentNoCustomHeadersSync(@HostParam("ur @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listSharesSegmentNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @@ -201,7 +201,7 @@ Mono> lis @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> listSharesSegmentNextNoCustomHeaders( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @@ -210,7 +210,7 @@ Mono> listSharesSegmentNextNoCustomHeaders( @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase listSharesSegmentNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @@ -219,7 +219,7 @@ ResponseBase listShare @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response listSharesSegmentNextNoCustomHeadersSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @@ -236,7 +236,7 @@ Response listSharesSegmentNextNoCustomHeadersSync( * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -260,7 +260,7 @@ Response listSharesSegmentNextNoCustomHeadersSync( * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -283,7 +283,7 @@ public Mono> setPropertiesWithR * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -302,7 +302,7 @@ public Mono setPropertiesAsync(ShareServiceProperties shareServiceProperti * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -322,7 +322,7 @@ public Mono setPropertiesAsync(ShareServiceProperties shareServiceProperti * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -347,7 +347,7 @@ public Mono setPropertiesAsync(ShareServiceProperties shareServiceProperti * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -371,7 +371,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -394,7 +394,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -412,7 +412,7 @@ public void setProperties(ShareServiceProperties shareServiceProperties, Integer * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -434,7 +434,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(ShareServicePrope * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules along with {@link ResponseBase} on successful completion of @@ -459,7 +459,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(ShareServicePrope * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules along with {@link ResponseBase} on successful completion of @@ -483,7 +483,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(ShareServicePrope * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules on successful completion of {@link Mono}. @@ -502,7 +502,7 @@ public Mono getPropertiesAsync(Integer timeout) { * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules on successful completion of {@link Mono}. @@ -520,7 +520,7 @@ public Mono getPropertiesAsync(Integer timeout, Context * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules along with {@link Response} on successful completion of @@ -544,7 +544,7 @@ public Mono> getPropertiesNoCustomHeadersWithRe * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules along with {@link Response} on successful completion of @@ -569,7 +569,7 @@ public Mono> getPropertiesNoCustomHeadersWithRe * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules along with {@link ResponseBase}. @@ -592,7 +592,7 @@ public ResponseBase getPro * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules. @@ -611,7 +611,7 @@ public ShareServiceProperties getProperties(Integer timeout) { * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's File service, including properties for Storage Analytics metrics * and CORS (Cross-Origin Resource Sharing) rules along with {@link Response}. @@ -640,7 +640,7 @@ public Response getPropertiesNoCustomHeadersWithResponse * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -678,7 +678,7 @@ public Mono> listSharesSegmentSinglePageAsync(S * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -714,7 +714,7 @@ public Mono> listSharesSegmentSinglePageAsync(S * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedFlux}. */ @@ -741,7 +741,7 @@ public PagedFlux listSharesSegmentAsync(String prefix, String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedFlux}. */ @@ -768,7 +768,7 @@ public PagedFlux listSharesSegmentAsync(String prefix, String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -806,7 +806,7 @@ public Mono> listSharesSegmentNoCustomHeadersSi * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -842,7 +842,7 @@ public Mono> listSharesSegmentNoCustomHeadersSi * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedFlux}. */ @@ -870,7 +870,7 @@ public PagedFlux listSharesSegmentNoCustomHeadersAsync(String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedFlux}. */ @@ -896,7 +896,7 @@ public PagedFlux listSharesSegmentNoCustomHeadersAsync(String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -933,7 +933,7 @@ public PagedResponse listSharesSegmentSinglePage(String prefi * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -969,7 +969,7 @@ public PagedResponse listSharesSegmentSinglePage(String prefi * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedIterable}. */ @@ -997,7 +997,7 @@ public PagedIterable listSharesSegment(String prefix, String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedIterable}. */ @@ -1024,7 +1024,7 @@ public PagedIterable listSharesSegment(String prefix, String * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -1061,7 +1061,7 @@ public PagedResponse listSharesSegmentNoCustomHeadersSinglePa * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -1097,7 +1097,7 @@ public PagedResponse listSharesSegmentNoCustomHeadersSinglePa * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedIterable}. */ @@ -1124,7 +1124,7 @@ public PagedIterable listSharesSegmentNoCustomHeaders(String * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares as paginated response with {@link PagedIterable}. */ @@ -1143,7 +1143,7 @@ public PagedIterable listSharesSegmentNoCustomHeaders(String * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1165,7 +1165,7 @@ public Mono> listSharesSegmentNextSinglePageAsy * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1187,7 +1187,7 @@ public Mono> listSharesSegmentNextSinglePageAsy * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1209,7 +1209,7 @@ public Mono> listSharesSegmentNextNoCustomHeade * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse} on successful completion of {@link Mono}. */ @@ -1231,7 +1231,7 @@ public Mono> listSharesSegmentNextNoCustomHeade * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -1253,7 +1253,7 @@ public PagedResponse listSharesSegmentNextSinglePage(String n * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -1274,7 +1274,7 @@ public PagedResponse listSharesSegmentNextSinglePage(String n * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ @@ -1295,7 +1295,7 @@ public PagedResponse listSharesSegmentNextNoCustomHeadersSing * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an enumeration of shares along with {@link PagedResponse}. */ diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/SharesImpl.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/SharesImpl.java index a4e86641d23f..a34f029be45d 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/SharesImpl.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/SharesImpl.java @@ -44,11 +44,11 @@ import com.azure.storage.file.share.implementation.models.SharesSetMetadataHeaders; import com.azure.storage.file.share.implementation.models.SharesSetPropertiesHeaders; import com.azure.storage.file.share.implementation.models.ShareStats; +import com.azure.storage.file.share.implementation.models.ShareStorageExceptionInternal; import com.azure.storage.file.share.models.FilePermissionFormat; import com.azure.storage.file.share.models.ShareAccessTier; import com.azure.storage.file.share.models.ShareRootSquash; import com.azure.storage.file.share.models.ShareSignedIdentifier; -import com.azure.storage.file.share.models.ShareStorageException; import com.azure.storage.file.share.models.ShareTokenIntent; import java.util.List; import java.util.Map; @@ -87,7 +87,7 @@ public final class SharesImpl { public interface SharesService { @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -103,7 +103,7 @@ Mono> create(@HostParam("url") String ur @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -119,7 +119,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase createSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -135,7 +135,7 @@ ResponseBase createSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response createNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @HeaderParam("x-ms-share-quota") Integer quota, @@ -151,7 +151,7 @@ Response createNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -161,7 +161,7 @@ Mono> getProperties(@HostParam("u @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -171,7 +171,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getPropertiesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -181,7 +181,7 @@ ResponseBase getPropertiesSync(@HostParam("url @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -191,7 +191,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Delete("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -203,7 +203,7 @@ Mono> delete(@HostParam("url") String ur @Delete("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -215,7 +215,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @@ -227,7 +227,7 @@ ResponseBase deleteSync(@HostParam("url") String url, @Delete("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("sharesnapshot") String sharesnapshot, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -238,7 +238,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> acquireLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -250,7 +250,7 @@ Mono> acquireLease(@HostParam("url @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -262,7 +262,7 @@ Mono> acquireLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase acquireLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -274,7 +274,7 @@ ResponseBase acquireLeaseSync(@HostParam("url") @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response acquireLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -286,7 +286,7 @@ Response acquireLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> releaseLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -298,7 +298,7 @@ Mono> releaseLease(@HostParam("url @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -310,7 +310,7 @@ Mono> releaseLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase releaseLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -322,7 +322,7 @@ ResponseBase releaseLeaseSync(@HostParam("url") @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response releaseLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -334,7 +334,7 @@ Response releaseLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> changeLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -346,7 +346,7 @@ Mono> changeLease(@HostParam("url") @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -358,7 +358,7 @@ Mono> changeLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase changeLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -370,7 +370,7 @@ ResponseBase changeLeaseSync(@HostParam("url") S @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response changeLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -382,7 +382,7 @@ Response changeLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> renewLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -394,7 +394,7 @@ Mono> renewLease(@HostParam("url") S @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> renewLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -406,7 +406,7 @@ Mono> renewLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase renewLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -418,7 +418,7 @@ ResponseBase renewLeaseSync(@HostParam("url") Str @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response renewLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -430,7 +430,7 @@ Response renewLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> breakLease(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -442,7 +442,7 @@ Mono> breakLease(@HostParam("url") S @Put("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -454,7 +454,7 @@ Mono> breakLeaseNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase breakLeaseSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -466,7 +466,7 @@ ResponseBase breakLeaseSync(@HostParam("url") Str @Put("/{shareName}") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response breakLeaseNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("comp") String comp, @HeaderParam("x-ms-lease-action") String action, @QueryParam("restype") String restype, @@ -478,7 +478,7 @@ Response breakLeaseNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createSnapshot(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -488,7 +488,7 @@ Mono> createSnapshot(@HostParam( @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createSnapshotNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -498,7 +498,7 @@ Mono> createSnapshotNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase createSnapshotSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -508,7 +508,7 @@ ResponseBase createSnapshotSync(@HostParam("u @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response createSnapshotNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -518,7 +518,7 @@ Response createSnapshotNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createPermission(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -529,7 +529,7 @@ Mono> createPermission(@HostPa @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> createPermissionNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -540,7 +540,7 @@ Mono> createPermissionNoCustomHeaders(@HostParam("url") String ur @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase createPermissionSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -551,7 +551,7 @@ ResponseBase createPermissionSync(@HostPara @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response createPermissionNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -562,7 +562,7 @@ Response createPermissionNoCustomHeadersSync(@HostParam("url") String url, @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getPermission(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-file-permission-key") String filePermissionKey, @@ -573,7 +573,7 @@ Mono> getPermission(@H @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getPermissionNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-file-permission-key") String filePermissionKey, @@ -584,7 +584,7 @@ Mono> getPermissionNoCustomHeaders(@HostParam("url") S @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getPermissionSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-file-permission-key") String filePermissionKey, @@ -595,7 +595,7 @@ ResponseBase getPermissionSync(@Hos @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getPermissionNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @HeaderParam("x-ms-file-permission-key") String filePermissionKey, @@ -606,7 +606,7 @@ Response getPermissionNoCustomHeadersSync(@HostParam("url") Str @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setProperties(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -622,7 +622,7 @@ Mono> setProperties(@HostParam("u @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -638,7 +638,7 @@ Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setPropertiesSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -654,7 +654,7 @@ ResponseBase setPropertiesSync(@HostParam("url @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -670,7 +670,7 @@ Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setMetadata(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -681,7 +681,7 @@ Mono> setMetadata(@HostParam("url") @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -692,7 +692,7 @@ Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setMetadataSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -703,7 +703,7 @@ ResponseBase setMetadataSync(@HostParam("url") S @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -714,7 +714,7 @@ Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getAccessPolicy( @HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -725,7 +725,7 @@ Mono> g @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getAccessPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -735,7 +735,7 @@ Mono> getAccessPolicyNoCustomHeaders(@Hos @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getAccessPolicySync( @HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @@ -746,7 +746,7 @@ ResponseBase getAcce @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getAccessPolicyNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -756,7 +756,7 @@ Response getAccessPolicyNoCustomHeadersSync(@HostP @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setAccessPolicy(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -767,7 +767,7 @@ Mono> setAccessPolicy(@HostPara @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> setAccessPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -778,7 +778,7 @@ Mono> setAccessPolicyNoCustomHeaders(@HostParam("url") String url @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase setAccessPolicySync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -789,7 +789,7 @@ ResponseBase setAccessPolicySync(@HostParam( @Put("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response setAccessPolicyNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -800,7 +800,7 @@ Response setAccessPolicyNoCustomHeadersSync(@HostParam("url") String url, @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getStatistics(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -810,7 +810,7 @@ Mono> getStatistics(@HostPa @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> getStatisticsNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -820,7 +820,7 @@ Mono> getStatisticsNoCustomHeaders(@HostParam("url") String @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase getStatisticsSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -830,7 +830,7 @@ ResponseBase getStatisticsSync(@HostPara @Get("/{shareName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response getStatisticsNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -840,7 +840,7 @@ Response getStatisticsNoCustomHeadersSync(@HostParam("url") String u @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> restore(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -852,7 +852,7 @@ Mono> restore(@HostParam("url") String @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Mono> restoreNoCustomHeaders(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -864,7 +864,7 @@ Mono> restoreNoCustomHeaders(@HostParam("url") String url, @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) ResponseBase restoreSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -876,7 +876,7 @@ ResponseBase restoreSync(@HostParam("url") String ur @Put("/{shareName}") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(ShareStorageException.class) + @UnexpectedResponseExceptionType(ShareStorageExceptionInternal.class) Response restoreNoCustomHeadersSync(@HostParam("url") String url, @PathParam("shareName") String shareName, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @@ -908,7 +908,7 @@ Response restoreNoCustomHeadersSync(@HostParam("url") String url, * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -947,7 +947,7 @@ public Mono> createWithResponseAsync(Str * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -985,7 +985,7 @@ public Mono> createWithResponseAsync(Str * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1021,7 +1021,7 @@ public Mono createAsync(String shareName, Integer timeout, Map createAsync(String shareName, Integer timeout, Map> createNoCustomHeadersWithResponseAsync(String shareN * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1134,7 +1134,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String shareN * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1172,7 +1172,7 @@ public ResponseBase createWithResponse(String shareNa * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1207,7 +1207,7 @@ public void create(String shareName, Integer timeout, Map metada * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1236,7 +1236,7 @@ public Response createNoCustomHeadersWithResponse(String shareName, Intege * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1263,7 +1263,7 @@ public Mono> getPropertiesWithRes * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1288,7 +1288,7 @@ public Mono> getPropertiesWithRes * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1311,7 +1311,7 @@ public Mono getPropertiesAsync(String shareName, String sharesnapshot, Int * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1334,7 +1334,7 @@ public Mono getPropertiesAsync(String shareName, String sharesnapshot, Int * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1361,7 +1361,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1387,7 +1387,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1412,7 +1412,7 @@ public ResponseBase getPropertiesWithResponse( * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1433,7 +1433,7 @@ public void getProperties(String shareName, String sharesnapshot, Integer timeou * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1459,7 +1459,7 @@ public Response getPropertiesNoCustomHeadersWithResponse(String shareName, * @param deleteSnapshots Specifies the option include to delete the base share and all of its snapshots. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1487,7 +1487,7 @@ public Mono> deleteWithResponseAsync(Str * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1513,7 +1513,7 @@ public Mono> deleteWithResponseAsync(Str * @param deleteSnapshots Specifies the option include to delete the base share and all of its snapshots. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1538,7 +1538,7 @@ public Mono deleteAsync(String shareName, String sharesnapshot, Integer ti * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1562,7 +1562,7 @@ public Mono deleteAsync(String shareName, String sharesnapshot, Integer ti * @param deleteSnapshots Specifies the option include to delete the base share and all of its snapshots. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1590,7 +1590,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String shareN * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1617,7 +1617,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String shareN * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1643,7 +1643,7 @@ public ResponseBase deleteWithResponse(String shareNa * @param deleteSnapshots Specifies the option include to delete the base share and all of its snapshots. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1666,7 +1666,7 @@ public void delete(String shareName, String sharesnapshot, Integer timeout, * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1698,7 +1698,7 @@ public Response deleteNoCustomHeadersWithResponse(String shareName, String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1734,7 +1734,7 @@ public Mono> acquireLeaseWithRespo * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1770,7 +1770,7 @@ public Mono> acquireLeaseWithRespo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1801,7 +1801,7 @@ public Mono acquireLeaseAsync(String shareName, Integer timeout, Integer d * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1831,7 +1831,7 @@ public Mono acquireLeaseAsync(String shareName, Integer timeout, Integer d * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1867,7 +1867,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1903,7 +1903,7 @@ public Mono> acquireLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1938,7 +1938,7 @@ public ResponseBase acquireLeaseWithResponse(St * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1967,7 +1967,7 @@ public void acquireLease(String shareName, Integer timeout, Integer duration, St * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1997,7 +1997,7 @@ public Response acquireLeaseNoCustomHeadersWithResponse(String shareName, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2028,7 +2028,7 @@ public Mono> releaseLeaseWithRespo * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2057,7 +2057,7 @@ public Mono> releaseLeaseWithRespo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2083,7 +2083,7 @@ public Mono releaseLeaseAsync(String shareName, String leaseId, Integer ti * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2108,7 +2108,7 @@ public Mono releaseLeaseAsync(String shareName, String leaseId, Integer ti * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2139,7 +2139,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2170,7 +2170,7 @@ public Mono> releaseLeaseNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2199,7 +2199,7 @@ public ResponseBase releaseLeaseWithResponse(St * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2223,7 +2223,7 @@ public void releaseLease(String shareName, String leaseId, Integer timeout, Stri * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2256,7 +2256,7 @@ public Response releaseLeaseNoCustomHeadersWithResponse(String shareName, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2290,7 +2290,7 @@ public Mono> changeLeaseWithRespons * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2324,7 +2324,7 @@ public Mono> changeLeaseWithRespons * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2353,7 +2353,7 @@ public Mono changeLeaseAsync(String shareName, String leaseId, Integer tim * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2381,7 +2381,7 @@ public Mono changeLeaseAsync(String shareName, String leaseId, Integer tim * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2415,7 +2415,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String s * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2449,7 +2449,7 @@ public Mono> changeLeaseNoCustomHeadersWithResponseAsync(String s * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2482,7 +2482,7 @@ public ResponseBase changeLeaseWithResponse(Stri * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2509,7 +2509,7 @@ public void changeLease(String shareName, String leaseId, Integer timeout, Strin * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2539,7 +2539,7 @@ public Response changeLeaseNoCustomHeadersWithResponse(String shareName, S * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2570,7 +2570,7 @@ public Mono> renewLeaseWithResponseA * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2599,7 +2599,7 @@ public Mono> renewLeaseWithResponseA * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2625,7 +2625,7 @@ public Mono renewLeaseAsync(String shareName, String leaseId, Integer time * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2650,7 +2650,7 @@ public Mono renewLeaseAsync(String shareName, String leaseId, Integer time * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2681,7 +2681,7 @@ public Mono> renewLeaseNoCustomHeadersWithResponseAsync(String sh * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2712,7 +2712,7 @@ public Mono> renewLeaseNoCustomHeadersWithResponseAsync(String sh * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -2741,7 +2741,7 @@ public ResponseBase renewLeaseWithResponse(String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2764,7 +2764,7 @@ public void renewLease(String shareName, String leaseId, Integer timeout, String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -2800,7 +2800,7 @@ public Response renewLeaseNoCustomHeadersWithResponse(String shareName, St * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2837,7 +2837,7 @@ public Mono> breakLeaseWithResponseA * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -2872,7 +2872,7 @@ public Mono> breakLeaseWithResponseA * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2904,7 +2904,7 @@ public Mono breakLeaseAsync(String shareName, Integer timeout, Integer bre * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -2935,7 +2935,7 @@ public Mono breakLeaseAsync(String shareName, Integer timeout, Integer bre * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -2972,7 +2972,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String sh * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3009,7 +3009,7 @@ public Mono> breakLeaseNoCustomHeadersWithResponseAsync(String sh * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -3045,7 +3045,7 @@ public ResponseBase breakLeaseWithResponse(String * @param sharesnapshot The snapshot parameter is an opaque DateTime value that, when present, specifies the share * snapshot to query. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3075,7 +3075,7 @@ public void breakLease(String shareName, Integer timeout, Integer breakPeriod, S * snapshot to query. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -3100,7 +3100,7 @@ public Response breakLeaseNoCustomHeadersWithResponse(String shareName, In * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3124,7 +3124,7 @@ public Mono> createSnapshotWithR * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3147,7 +3147,7 @@ public Mono> createSnapshotWithR * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3166,7 +3166,7 @@ public Mono createSnapshotAsync(String shareName, Integer timeout, Map createSnapshotAsync(String shareName, Integer timeout, Map> createSnapshotNoCustomHeadersWithResponseAsync(Strin * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3234,7 +3234,7 @@ public Mono> createSnapshotNoCustomHeadersWithResponseAsync(Strin * @param metadata A name-value pair to associate with a file storage object. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -3257,7 +3257,7 @@ public ResponseBase createSnapshotWithRespons * Timeouts for File Service Operations.</a>. * @param metadata A name-value pair to associate with a file storage object. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3275,7 +3275,7 @@ public void createSnapshot(String shareName, Integer timeout, Map createSnapshotNoCustomHeadersWithResponse(String shareName * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3322,7 +3322,7 @@ public Mono> createPermissionW * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3345,7 +3345,7 @@ public Mono> createPermissionW * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3364,7 +3364,7 @@ public Mono createPermissionAsync(String shareName, SharePermission shareP * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3384,7 +3384,7 @@ public Mono createPermissionAsync(String shareName, SharePermission shareP * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3409,7 +3409,7 @@ public Mono> createPermissionNoCustomHeadersWithResponseAsync(Str * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3433,7 +3433,7 @@ public Mono> createPermissionNoCustomHeadersWithResponseAsync(Str * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -3456,7 +3456,7 @@ public ResponseBase createPermissionWithRes * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3474,7 +3474,7 @@ public void createPermission(String shareName, SharePermission sharePermission, * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -3502,7 +3502,7 @@ public Response createPermissionNoCustomHeadersWithResponse(String shareNa * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -3533,7 +3533,7 @@ public Mono> getPermis * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -3564,7 +3564,7 @@ public Mono> getPermis * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level on successful completion of {@link Mono}. */ @@ -3590,7 +3590,7 @@ public Mono getPermissionAsync(String shareName, String filePer * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level on successful completion of {@link Mono}. */ @@ -3615,7 +3615,7 @@ public Mono getPermissionAsync(String shareName, String filePer * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level along with {@link Response} on successful * completion of {@link Mono}. @@ -3646,7 +3646,7 @@ public Mono> getPermissionNoCustomHeadersWithResponseA * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level along with {@link Response} on successful * completion of {@link Mono}. @@ -3677,7 +3677,7 @@ public Mono> getPermissionNoCustomHeadersWithResponseA * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level along with {@link ResponseBase}. */ @@ -3706,7 +3706,7 @@ public ResponseBase getPermissionWi * href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting * Timeouts for File Service Operations.</a>. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level. */ @@ -3732,7 +3732,7 @@ public SharePermission getPermission(String shareName, String filePermissionKey, * Timeouts for File Service Operations.</a>. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a permission (a security descriptor) at the share level along with {@link Response}. */ @@ -3766,7 +3766,7 @@ public Response getPermissionNoCustomHeadersWithResponse(String * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3804,7 +3804,7 @@ public Mono> setPropertiesWithRes * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -3840,7 +3840,7 @@ public Mono> setPropertiesWithRes * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3873,7 +3873,7 @@ public Mono setPropertiesAsync(String shareName, Integer timeout, Integer * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -3905,7 +3905,7 @@ public Mono setPropertiesAsync(String shareName, Integer timeout, Integer * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3943,7 +3943,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync(String * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -3981,7 +3981,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync(String * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4018,7 +4018,7 @@ public ResponseBase setPropertiesWithResponse( * @param paidBurstingMaxIops Optional. Integer. Default if not specified is the maximum IOPS the file share can * support. Current maximum for a file share is 102,400 IOPS. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4050,7 +4050,7 @@ public void setProperties(String shareName, Integer timeout, Integer quota, Shar * support. Current maximum for a file share is 102,400 IOPS. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4078,7 +4078,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(String shareName, * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4103,7 +4103,7 @@ public Mono> setMetadataWithRespons * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4127,7 +4127,7 @@ public Mono> setMetadataWithRespons * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4148,7 +4148,7 @@ public Mono setMetadataAsync(String shareName, Integer timeout, Map setMetadataAsync(String shareName, Integer timeout, Map> setMetadataNoCustomHeadersWithResponseAsync(String s * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4220,7 +4220,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String s * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4244,7 +4244,7 @@ public ResponseBase setMetadataWithResponse(Stri * @param metadata A name-value pair to associate with a file storage object. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4263,7 +4263,7 @@ public void setMetadata(String shareName, Integer timeout, Map m * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4286,7 +4286,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, I * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -4311,7 +4311,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, I * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -4335,7 +4335,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String shareName, I * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers on successful completion of {@link Mono}. */ @@ -4355,7 +4355,7 @@ public Mono getAccessPolicyAsync(String shareName, * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers on successful completion of {@link Mono}. */ @@ -4375,7 +4375,7 @@ public Mono getAccessPolicyAsync(String shareName, * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link Response} on successful completion of {@link Mono}. */ @@ -4400,7 +4400,7 @@ public Mono getAccessPolicyAsync(String shareName, * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link Response} on successful completion of {@link Mono}. */ @@ -4424,7 +4424,7 @@ public Mono> getAccessPolicyNoCustomHeade * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link ResponseBase}. */ @@ -4447,7 +4447,7 @@ public Mono> getAccessPolicyNoCustomHeade * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers. */ @@ -4466,7 +4466,7 @@ public ShareSignedIdentifierWrapper getAccessPolicy(String shareName, Integer ti * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link Response}. */ @@ -4490,7 +4490,7 @@ public Response getAccessPolicyNoCustomHeadersWith * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareAcl The ACL for the share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4517,7 +4517,7 @@ public Mono> setAccessPolicyWit * @param shareAcl The ACL for the share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4542,7 +4542,7 @@ public Mono> setAccessPolicyWit * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareAcl The ACL for the share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4563,7 +4563,7 @@ public Mono setAccessPolicyAsync(String shareName, Integer timeout, String * @param shareAcl The ACL for the share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4584,7 +4584,7 @@ public Mono setAccessPolicyAsync(String shareName, Integer timeout, String * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareAcl The ACL for the share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4611,7 +4611,7 @@ public Mono> setAccessPolicyNoCustomHeadersWithResponseAsync(Stri * @param shareAcl The ACL for the share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -4637,7 +4637,7 @@ public Mono> setAccessPolicyNoCustomHeadersWithResponseAsync(Stri * @param shareAcl The ACL for the share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -4662,7 +4662,7 @@ public ResponseBase setAccessPolicyWithRespo * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param shareAcl The ACL for the share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -4682,7 +4682,7 @@ public void setAccessPolicy(String shareName, Integer timeout, String leaseId, * @param shareAcl The ACL for the share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -4706,7 +4706,7 @@ public Response setAccessPolicyNoCustomHeadersWithResponse(String shareNam * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4730,7 +4730,7 @@ public Mono> getStatisticsW * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4753,7 +4753,7 @@ public Mono> getStatisticsW * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share on successful completion of {@link Mono}. */ @@ -4773,7 +4773,7 @@ public Mono getStatisticsAsync(String shareName, Integer timeout, St * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share on successful completion of {@link Mono}. */ @@ -4792,7 +4792,7 @@ public Mono getStatisticsAsync(String shareName, Integer timeout, St * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share along with {@link Response} on successful completion of {@link Mono}. */ @@ -4817,7 +4817,7 @@ public Mono> getStatisticsNoCustomHeadersWithResponseAsync( * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share along with {@link Response} on successful completion of {@link Mono}. */ @@ -4841,7 +4841,7 @@ public Mono> getStatisticsNoCustomHeadersWithResponseAsync( * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share along with {@link ResponseBase}. */ @@ -4864,7 +4864,7 @@ public ResponseBase getStatisticsWithRes * Timeouts for File Service Operations.</a>. * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share. */ @@ -4883,7 +4883,7 @@ public ShareStats getStatistics(String shareName, Integer timeout, String leaseI * @param leaseId If specified, the operation only succeeds if the resource's lease is active and matches this ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the share along with {@link Response}. */ @@ -4909,7 +4909,7 @@ public Response getStatisticsNoCustomHeadersWithResponse(String shar * @param deletedShareName Specifies the name of the previously-deleted share. * @param deletedShareVersion Specifies the version of the previously-deleted share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4937,7 +4937,7 @@ public Mono> restoreWithResponseAsync(S * @param deletedShareVersion Specifies the version of the previously-deleted share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -4963,7 +4963,7 @@ public Mono> restoreWithResponseAsync(S * @param deletedShareName Specifies the name of the previously-deleted share. * @param deletedShareVersion Specifies the version of the previously-deleted share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -4987,7 +4987,7 @@ public Mono restoreAsync(String shareName, Integer timeout, String request * @param deletedShareVersion Specifies the version of the previously-deleted share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -5010,7 +5010,7 @@ public Mono restoreAsync(String shareName, Integer timeout, String request * @param deletedShareName Specifies the name of the previously-deleted share. * @param deletedShareVersion Specifies the version of the previously-deleted share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5038,7 +5038,7 @@ public Mono> restoreNoCustomHeadersWithResponseAsync(String share * @param deletedShareVersion Specifies the version of the previously-deleted share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -5066,7 +5066,7 @@ public Mono> restoreNoCustomHeadersWithResponseAsync(String share * @param deletedShareVersion Specifies the version of the previously-deleted share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -5092,7 +5092,7 @@ public ResponseBase restoreWithResponse(String share * @param deletedShareName Specifies the name of the previously-deleted share. * @param deletedShareVersion Specifies the version of the previously-deleted share. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -5114,7 +5114,7 @@ public void restore(String shareName, Integer timeout, String requestId, String * @param deletedShareVersion Specifies the version of the previously-deleted share. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ShareStorageException thrown if the request is rejected by server. + * @throws ShareStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/ShareStorageError.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/ShareStorageError.java new file mode 100644 index 000000000000..b9188ba940de --- /dev/null +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/ShareStorageError.java @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.share.implementation.models; + +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.xml.XmlReader; +import com.azure.xml.XmlSerializable; +import com.azure.xml.XmlToken; +import com.azure.xml.XmlWriter; + +import javax.xml.namespace.QName; +import javax.xml.stream.XMLStreamException; +import java.io.IOException; + +/** + * Represents an error response returned by the Azure Storage Shares service. + */ +public final class ShareStorageError + implements JsonSerializable, XmlSerializable { + private String code; + private String message; + private String queryParameterName; + private String queryParameterValue; + private String reason; + private String extendedErrorDetail; + + private ShareStorageError() { + } + + /** + * Gets the error code returned by the Azure Storage Shares service. + * + * @return The error code. + */ + public String getCode() { + return code; + } + + /** + * Gets the error message returned by the Azure Storage Shares service. + * + * @return The error message. + */ + public String getMessage() { + return message; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + return jsonWriter.writeStartObject("Error") + .writeStringField("Code", code) + .writeStringField("Message", this.message) + .writeStringField("QueryParameterName", this.queryParameterName) + .writeStringField("QueryParameterValue", this.queryParameterValue) + .writeStringField("Reason", this.reason) + .writeStringField("ExtendedErrorDetail", this.extendedErrorDetail) + .writeEndObject(); + } + + /** + * Reads an instance of ShareStorageError from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ShareStorageError if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ShareStorageError. + */ + public static ShareStorageError fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + // Buffer the next JSON object as ShareStorageError can take two forms: + // + // - A ShareStorageError object + // - A ShareStorageError object wrapped in an "error" node. + JsonReader bufferedReader = reader.bufferObject(); + bufferedReader.nextToken(); // Get to the START_OBJECT token. + while (bufferedReader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = bufferedReader.getFieldName(); + bufferedReader.nextToken(); + + if ("error".equals(fieldName)) { + // If the ShareStorageError was wrapped in the "error" node begin reading it now. + return readShareError(bufferedReader); + } else { + bufferedReader.skipChildren(); + } + } + + // Otherwise reset the JsonReader and read the whole JSON object. + return readShareError(bufferedReader.reset()); + }); + } + + private static ShareStorageError readShareError(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ShareStorageError deserializedStorageError = new ShareStorageError(); + + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedStorageError.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedStorageError.message = reader.getString(); + } else if ("queryParameterName".equals(fieldName)) { + deserializedStorageError.queryParameterName = reader.getString(); + } else if ("queryParameterValue".equals(fieldName)) { + deserializedStorageError.queryParameterValue = reader.getString(); + } else if ("reason".equals(fieldName)) { + deserializedStorageError.reason = reader.getString(); + } else if ("extendedErrorDetail".equals(fieldName)) { + deserializedStorageError.extendedErrorDetail = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageError; + }); + } + + @Override + public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLStreamException { + rootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + xmlWriter.writeStartElement(rootElementName); + xmlWriter.writeStringElement("Code", code); + xmlWriter.writeStringElement("Message", this.message); + xmlWriter.writeStringElement("QueryParameterName", this.queryParameterName); + xmlWriter.writeStringElement("QueryParameterValue", this.queryParameterValue); + xmlWriter.writeStringElement("Reason", this.reason); + xmlWriter.writeStringElement("ExtendedErrorDetail", this.extendedErrorDetail); + return xmlWriter.writeEndElement(); + } + + /** + * Reads an instance of ShareStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @return An instance of ShareStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the ShareStorageError. + */ + public static ShareStorageError fromXml(XmlReader xmlReader) throws XMLStreamException { + return fromXml(xmlReader, null); + } + + /** + * Reads an instance of ShareStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @param rootElementName Optional root element name to override the default defined by the model. Used to support + * cases where the model can deserialize from different root element names. + * @return An instance of ShareStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the ShareStorageError. + */ + public static ShareStorageError fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException { + String finalRootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + return xmlReader.readObject(finalRootElementName, reader -> { + ShareStorageError deserializedStorageError = new ShareStorageError(); + while (reader.nextElement() != XmlToken.END_ELEMENT) { + QName elementName = reader.getElementName(); + + if ("Code".equals(elementName.getLocalPart())) { + deserializedStorageError.code = reader.getStringElement(); + } else if ("Message".equals(elementName.getLocalPart())) { + deserializedStorageError.message = reader.getStringElement(); + } else if ("QueryParameterName".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterName = reader.getStringElement(); + } else if ("QueryParameterValue".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterValue = reader.getStringElement(); + } else if ("Reason".equals(elementName.getLocalPart())) { + deserializedStorageError.reason = reader.getStringElement(); + } else if ("ExtendedErrorDetail".equals(elementName.getLocalPart())) { + deserializedStorageError.extendedErrorDetail = reader.getStringElement(); + } + } + + return deserializedStorageError; + }); + } +} diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/ShareStorageExceptionInternal.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/ShareStorageExceptionInternal.java new file mode 100644 index 000000000000..03b28990c31f --- /dev/null +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/ShareStorageExceptionInternal.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.share.implementation.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; +import com.azure.storage.common.implementation.StorageImplUtils; + +/** + * A {@code ShareStorageExceptionInternal} is thrown whenever Azure Storage successfully returns an error code that + * is not 200-level. Users can inspect the status code and error code to determine the cause of the error response. The + * exception message may also contain more detailed information depending on the type of error. The user may also + * inspect the raw HTTP response or call toString to get the full payload of the error response if present. Note that + * even some expected "errors" will be thrown as a {@code ShareStorageExceptionInternal}. For example, some users may + * perform a getProperties request on an entity to determine whether it exists or not. If it does not exists, an + * exception will be thrown even though this may be considered an expected indication of absence in this case. + */ +public final class ShareStorageExceptionInternal extends HttpResponseException { + /** + * Constructs a {@code ShareStorageExceptionInternal}. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized error response. + */ + public ShareStorageExceptionInternal(String message, HttpResponse response, ShareStorageError value) { + super(StorageImplUtils.convertStorageExceptionMessage(message, response), response, value); + } + + @Override + public ShareStorageError getValue() { + return (ShareStorageError) super.getValue(); + } +} diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/BuilderHelper.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/BuilderHelper.java index 77dd590f5783..5417f2091b88 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/BuilderHelper.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/BuilderHelper.java @@ -6,6 +6,7 @@ import com.azure.core.credential.AzureSasCredential; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; @@ -64,7 +65,7 @@ public final class BuilderHelper { } private static final Pattern IP_URL_PATTERN = Pattern - .compile("(?:\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(?:localhost)"); + .compile("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|localhost"); /** * Constructs a {@link HttpPipeline} from values passed from a builder. @@ -188,7 +189,7 @@ public static HttpLogOptions getDefaultHttpLogOptions() { */ private static HttpPipelinePolicy getResponseValidationPolicy() { return new ResponseValidationPolicyBuilder() - .addOptionalEcho(Constants.HeaderConstants.CLIENT_REQUEST_ID) + .addOptionalEcho(HttpHeaderName.X_MS_CLIENT_REQUEST_ID) .build(); } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/ModelHelper.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/ModelHelper.java index c93d442b93af..4829b84aa75a 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/ModelHelper.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/util/ModelHelper.java @@ -38,6 +38,7 @@ import com.azure.storage.file.share.implementation.models.ShareItemInternal; import com.azure.storage.file.share.implementation.models.SharePropertiesInternal; import com.azure.storage.file.share.implementation.models.ShareStats; +import com.azure.storage.file.share.implementation.models.ShareStorageExceptionInternal; import com.azure.storage.file.share.implementation.models.SharesCreateSnapshotHeaders; import com.azure.storage.file.share.implementation.models.SharesGetPropertiesHeaders; import com.azure.storage.file.share.implementation.models.StringEncoded; @@ -82,6 +83,8 @@ import java.util.Map; import java.util.Set; import java.util.TreeSet; +import java.util.concurrent.Callable; +import java.util.function.Supplier; import static com.azure.core.http.HttpHeaderName.LAST_MODIFIED; @@ -617,4 +620,43 @@ public static LongRunningOperationStatus mapStatusToLongRunningOperationStatus(C } return operationStatus; } + + /** + * Maps the internal exception to a public exception, if and only if {@code internal} is an instance of + * {@link ShareStorageExceptionInternal} and it will be mapped to {@link ShareStorageException}. + *

+ * The internal exception is required as the public exception was created using Object as the exception value. This + * was incorrect and should have been a specific type that was XML deserializable. So, an internal exception was + * added to handle this and we map that to the public exception, keeping the API the same. + * + * @param internal The internal exception. + * @return The public exception. + */ + public static Throwable mapToShareStorageException(Throwable internal) { + if (internal instanceof ShareStorageExceptionInternal) { + ShareStorageExceptionInternal internalException = (ShareStorageExceptionInternal) internal; + return new ShareStorageException(internalException.getMessage(), internalException.getResponse(), + internalException.getValue()); + } + + return internal; + } + + public static Callable wrapTimeoutServiceCallWithExceptionMapping(Supplier serviceCall) { + return () -> { + try { + return serviceCall.get(); + } catch (ShareStorageExceptionInternal internal) { + throw (ShareStorageException) mapToShareStorageException(internal); + } + }; + } + + public static T wrapServiceCallWithExceptionMapping(Supplier serviceCall) { + try { + return serviceCall.get(); + } catch (ShareStorageExceptionInternal internal) { + throw (ShareStorageException) mapToShareStorageException(internal); + } + } } diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/models/ShareStorageException.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/models/ShareStorageException.java index 0554a92bb838..8479ab721b59 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/models/ShareStorageException.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/models/ShareStorageException.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpResponse; import com.azure.storage.common.implementation.StorageImplUtils; -import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE; +import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE_HEADER_NAME; /** * A {@code StorageException} is thrown whenever Azure Storage successfully returns an error code that is not 200-level. @@ -40,7 +40,7 @@ public ShareStorageException(String message, HttpResponse response, Object value * @return The error code returned by the service. */ public ShareErrorCode getErrorCode() { - return ShareErrorCode.fromString(super.getResponse().getHeaders().getValue(ERROR_CODE)); + return ShareErrorCode.fromString(super.getResponse().getHeaders().getValue(ERROR_CODE_HEADER_NAME)); } /** diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseAsyncClient.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseAsyncClient.java index 563741c869c2..d6060c98ffe7 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseAsyncClient.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseAsyncClient.java @@ -14,6 +14,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.storage.file.share.ShareFileAsyncClient; import com.azure.storage.file.share.implementation.AzureFileStorageImpl; +import com.azure.storage.file.share.implementation.util.ModelHelper; import com.azure.storage.file.share.models.ShareTokenIntent; import com.azure.storage.file.share.options.ShareAcquireLeaseOptions; import com.azure.storage.file.share.options.ShareBreakLeaseOptions; @@ -178,10 +179,12 @@ Mono> acquireLeaseWithResponse(ShareAcquireLeaseOptions options if (this.isShareFile) { response = this.client.getFiles().acquireLeaseWithResponseAsync(shareName, resourcePath, null, options.getDuration(), this.leaseId, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } else { response = this.client.getShares().acquireLeaseWithResponseAsync(shareName, null, options.getDuration(), this.leaseId, shareSnapshot, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } @@ -234,10 +237,12 @@ Mono> releaseLeaseWithResponse(Context context) { context = context == null ? Context.NONE : context; if (this.isShareFile) { return this.client.getFiles().releaseLeaseNoCustomHeadersWithResponseAsync(shareName, resourcePath, - this.leaseId, null, null, context); + this.leaseId, null, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } else { return this.client.getShares().releaseLeaseNoCustomHeadersWithResponseAsync(shareName, this.leaseId, null, - shareSnapshot, null, context); + shareSnapshot, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } } @@ -314,10 +319,12 @@ Mono> breakLeaseWithResponse(ShareBreakLeaseOptions options, Cont : Math.toIntExact(options.getBreakPeriod().getSeconds()); if (this.isShareFile) { return this.client.getFiles() - .breakLeaseNoCustomHeadersWithResponseAsync(shareName, resourcePath, null, null, null, context); + .breakLeaseNoCustomHeadersWithResponseAsync(shareName, resourcePath, null, null, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } else { return this.client.getShares().breakLeaseNoCustomHeadersWithResponseAsync(shareName, null, breakPeriod, - null, null, shareSnapshot, context); + null, null, shareSnapshot, context) + .onErrorMap(ModelHelper::mapToShareStorageException); } } @@ -371,10 +378,12 @@ Mono> changeLeaseWithResponse(String proposedId, Context contex if (this.isShareFile) { response = this.client.getFiles().changeLeaseWithResponseAsync(shareName, resourcePath, this.leaseId, null, proposedId, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } else { response = this.client.getShares().changeLeaseWithResponseAsync(shareName, this.leaseId, null, proposedId, shareSnapshot, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } @@ -433,6 +442,7 @@ Mono> renewLeaseWithResponse(Context context) { } else { response = this.client.getShares().renewLeaseWithResponseAsync(shareName, this.leaseId, null, shareSnapshot, null, context) + .onErrorMap(ModelHelper::mapToShareStorageException) .map(rb -> new SimpleResponse<>(rb, rb.getDeserializedHeaders().getXMsLeaseId())); } diff --git a/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareDirectoryAsyncJavaDocCodeSamples.java b/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareDirectoryAsyncJavaDocCodeSamples.java index be12b46b3b2a..12f04fcfb02f 100644 --- a/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareDirectoryAsyncJavaDocCodeSamples.java +++ b/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareDirectoryAsyncJavaDocCodeSamples.java @@ -157,8 +157,7 @@ public void createDirectoryWithResponseAsync() { shareDirectoryAsyncClient.createWithResponse(options) .subscribe(response -> System.out.println("Completed creating the directory with status code:" + response.getStatusCode()), - error -> System.err.print(error.toString()) - ); + error -> System.err.print(error.toString())); // END: com.azure.storage.file.share.ShareDirectoryAsyncClient.createWithResponse#ShareDirectoryCreateOptions } diff --git a/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareFileJavaDocCodeSamples.java b/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareFileJavaDocCodeSamples.java index 0639a11035f4..1fba4c544ed1 100644 --- a/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareFileJavaDocCodeSamples.java +++ b/sdk/storage/azure-storage-file-share/src/samples/java/com/azure/storage/file/share/ShareFileJavaDocCodeSamples.java @@ -179,7 +179,7 @@ public void createWithResponse() { new Context(key1, value1)); System.out.printf("Creating the file completed with status code %d", response.getStatusCode()); // END: com.azure.storage.file.share.ShareFileClient.createWithResponse#long-ShareFileHttpHeaders-FileSmbProperties-String-Map-Duration-Context -} + } /** * Generates a code sample for using {@link ShareFileClient#createWithResponse(long, ShareFileHttpHeaders, FileSmbProperties, diff --git a/sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/ShareErrorDeserializationTests.java b/sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/ShareErrorDeserializationTests.java new file mode 100644 index 000000000000..85cf5d38f3ee --- /dev/null +++ b/sdk/storage/azure-storage-file-share/src/test/java/com/azure/storage/file/share/ShareErrorDeserializationTests.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.share; + +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.test.utils.MockTokenCredential; +import com.azure.storage.file.share.models.ShareStorageException; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +import java.nio.charset.StandardCharsets; + +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * Tests cases where the service returns a response that would result in a {@link ShareStorageException} being thrown + * with a response body that needs to be deserialized. + */ +public class ShareErrorDeserializationTests { + @Test + public void errorResponseBody() { + String errorResponse = "ContainerAlreadyExists" + + "The specified container already exists."; + HttpPipeline httpPipeline = new HttpPipelineBuilder() + .httpClient(request -> Mono.just(new MockHttpResponse(request, 409, + new HttpHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/xml"), + errorResponse.getBytes(StandardCharsets.UTF_8)))) + .build(); + ShareFileClient fileClient = new ShareFileClientBuilder() + .endpoint("https://account.blob.core.windows.net/") + .shareName("share") + .resourcePath("path") + .credential(new MockTokenCredential()) + .pipeline(httpPipeline) + .buildFileClient(); + + ShareStorageException exception = assertThrows(ShareStorageException.class, () -> fileClient.create(1L)); + assertTrue(exception.getMessage().contains("The specified container already exists.")); + // assertEquals(BlobErrorCode.CONTAINER_ALREADY_EXISTS, exception.getErrorCode()); + } +} diff --git a/sdk/storage/azure-storage-file-share/swagger/README.md b/sdk/storage/azure-storage-file-share/swagger/README.md index b5961c3eb067..5d5dca81ab63 100644 --- a/sdk/storage/azure-storage-file-share/swagger/README.md +++ b/sdk/storage/azure-storage-file-share/swagger/README.md @@ -26,7 +26,7 @@ service-interface-as-public: true license-header: MICROSOFT_MIT_SMALL enable-sync-stack: true context-client-method-parameter: true -default-http-exception-type: com.azure.storage.file.share.models.ShareStorageException +default-http-exception-type: com.azure.storage.file.share.implementation.models.ShareStorageExceptionInternal models-subpackage: implementation.models custom-types-subpackage: models custom-types: ShareFileHttpHeaders,ShareServiceProperties,ShareCorsRule,Range,FileRange,ClearRange,ShareFileRangeList,CopyStatusType,ShareSignedIdentifier,SourceModifiedAccessConditions,ShareErrorCode,StorageServiceProperties,ShareMetrics,ShareAccessPolicy,ShareFileDownloadHeaders,LeaseDurationType,LeaseStateType,LeaseStatusType,PermissionCopyModeType,ShareAccessTier,ShareRootSquash,ShareRetentionPolicy,ShareProtocolSettings,ShareSmbSettings,SmbMultichannel,FileLastWrittenMode,ShareTokenIntent,AccessRight,FilePermissionFormat diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueAsyncClient.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueAsyncClient.java index 92b862392665..65a895878a66 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueAsyncClient.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueAsyncClient.java @@ -225,7 +225,8 @@ public Mono> createWithResponse(Map metadata) { Mono> createWithResponse(Map metadata, Context context) { context = context == null ? Context.NONE : context; - return client.getQueues().createNoCustomHeadersWithResponseAsync(queueName, null, metadata, null, context); + return client.getQueues().createNoCustomHeadersWithResponseAsync(queueName, null, metadata, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException); } /** @@ -361,7 +362,8 @@ public Mono> deleteWithResponse() { Mono> deleteWithResponse(Context context) { context = context == null ? Context.NONE : context; - return client.getQueues().deleteNoCustomHeadersWithResponseAsync(queueName, null, null, context); + return client.getQueues().deleteNoCustomHeadersWithResponseAsync(queueName, null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException); } /** @@ -495,6 +497,7 @@ public Mono> getPropertiesWithResponse() { try { return withContext(context -> client.getQueues().getPropertiesWithResponseAsync(queueName, null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException) .map(response -> new SimpleResponse<>(response, ModelHelper.transformQueueProperties(response.getDeserializedHeaders())))); } catch (RuntimeException ex) { @@ -577,7 +580,8 @@ public Mono setMetadata(Map metadata) { public Mono> setMetadataWithResponse(Map metadata) { try { return withContext(context -> client.getQueues() - .setMetadataNoCustomHeadersWithResponseAsync(queueName, null, metadata, null, context)); + .setMetadataNoCustomHeadersWithResponseAsync(queueName, null, metadata, null, context)) + .onErrorMap(ModelHelper::mapToQueueStorageException); } catch (RuntimeException ex) { return monoError(LOGGER, ex); } @@ -609,6 +613,7 @@ public PagedFlux getAccessPolicy() { try { Function>> retriever = marker -> this.client.getQueues() .getAccessPolicyWithResponseAsync(queueName, null, null, Context.NONE) + .onErrorMap(ModelHelper::mapToQueueStorageException) .map(response -> new PagedResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), response.getValue().items(), null, response.getDeserializedHeaders())); @@ -711,7 +716,8 @@ Mono> setAccessPolicyWithResponse(Iterable .collect(Collectors.toList()); return client.getQueues() - .setAccessPolicyNoCustomHeadersWithResponseAsync(queueName, null, null, permissionsList, context); + .setAccessPolicyNoCustomHeadersWithResponseAsync(queueName, null, null, permissionsList, context) + .onErrorMap(ModelHelper::mapToQueueStorageException); } /** @@ -764,7 +770,8 @@ public Mono clearMessages() { public Mono> clearMessagesWithResponse() { try { return withContext(context -> client.getMessages() - .clearNoCustomHeadersWithResponseAsync(queueName, null, null, context)); + .clearNoCustomHeadersWithResponseAsync(queueName, null, null, context)) + .onErrorMap(ModelHelper::mapToQueueStorageException); } catch (RuntimeException ex) { return monoError(LOGGER, ex); } @@ -949,6 +956,7 @@ public Mono> sendMessageWithResponse(BinaryData mess QueueMessage queueMessage = new QueueMessage().setMessageText(messageText); return client.getMessages().enqueueWithResponseAsync(queueName, queueMessage, visibilityTimeoutInSeconds, timeToLiveInSeconds, null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException) .map(response -> new SimpleResponse<>(response, response.getValue().items().get(0))); })); } catch (RuntimeException ex) { @@ -1065,6 +1073,7 @@ public PagedFlux receiveMessages(Integer maxMessages, Duration Function>> retriever = marker -> withContext(context -> this.client.getMessages().dequeueWithResponseAsync(queueName, maxMessages, visibilityTimeoutInSeconds, null, null, context)) + .onErrorMap(ModelHelper::mapToQueueStorageException) .flatMap(this::transformMessagesDequeueResponse); return new PagedFlux<>(() -> retriever.apply(null), retriever); @@ -1174,6 +1183,7 @@ public PagedFlux peekMessages(Integer maxMessages) { try { Function>> retriever = marker -> withContext(context -> this.client.getMessages().peekWithResponseAsync(queueName, maxMessages, null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException) .flatMap(this::transformMessagesPeekResponse)); return new PagedFlux<>(() -> retriever.apply(null), retriever); @@ -1318,6 +1328,7 @@ public Mono> updateMessageWithResponse(String mess try { return withContext(context -> client.getMessageIds().updateWithResponseAsync(queueName, messageId, popReceipt, (int) visTimeout.getSeconds(), null, null, message, context) + .onErrorMap(ModelHelper::mapToQueueStorageException) .map(response -> new SimpleResponse<>(response, new UpdateMessageResult( response.getDeserializedHeaders().getXMsPopreceipt(), response.getDeserializedHeaders().getXMsTimeNextVisible())))); @@ -1402,7 +1413,8 @@ public Mono deleteMessage(String messageId, String popReceipt) { public Mono> deleteMessageWithResponse(String messageId, String popReceipt) { try { return withContext(context -> client.getMessageIds() - .deleteNoCustomHeadersWithResponseAsync(queueName, messageId, popReceipt, null, null, context)); + .deleteNoCustomHeadersWithResponseAsync(queueName, messageId, popReceipt, null, null, context)) + .onErrorMap(ModelHelper::mapToQueueStorageException); } catch (RuntimeException ex) { return monoError(LOGGER, ex); } diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueClient.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueClient.java index 2c20ad39f067..d3e2d63caab9 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueClient.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueClient.java @@ -58,6 +58,7 @@ import java.util.stream.Collectors; import static com.azure.storage.common.implementation.StorageImplUtils.submitThreadPool; +import static com.azure.storage.queue.implementation.util.ModelHelper.wrapCallWithExceptionMapping; /** * This class provides a client that contains all the operations for interacting with a queue in Azure Storage Queue. @@ -213,8 +214,9 @@ public void create() { public Response createWithResponse(Map metadata, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; try { - Supplier> operation = () -> this.azureQueueStorage.getQueues() - .createNoCustomHeadersWithResponse(queueName, null, metadata, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping( + () -> this.azureQueueStorage.getQueues().createNoCustomHeadersWithResponse(queueName, null, metadata, + null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } catch (RuntimeException e) { @@ -281,8 +283,9 @@ public Response createIfNotExistsWithResponse(Map metad Context context) { Context finalContext = context == null ? Context.NONE : context; try { - Supplier> operation = () -> this.azureQueueStorage.getQueues() - .createNoCustomHeadersWithResponse(queueName, null, metadata, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping( + () -> this.azureQueueStorage.getQueues().createNoCustomHeadersWithResponse(queueName, null, metadata, + null, finalContext)); Response response = submitThreadPool(operation, LOGGER, timeout); return new SimpleResponse<>(response, true); } catch (QueueStorageException e) { @@ -346,8 +349,9 @@ public void delete() { @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> this.azureQueueStorage.getQueues() - .deleteNoCustomHeadersWithResponse(queueName, null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping( + () -> this.azureQueueStorage.getQueues().deleteNoCustomHeadersWithResponse(queueName, null, null, + finalContext)); return submitThreadPool(operation, LOGGER, timeout); } @@ -406,8 +410,8 @@ public boolean deleteIfExists() { public Response deleteIfExistsWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; try { - Supplier> operation = () -> this.azureQueueStorage.getQueues() - .deleteNoCustomHeadersWithResponse(queueName, null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getQueues() + .deleteNoCustomHeadersWithResponse(queueName, null, null, finalContext)); Response response = submitThreadPool(operation, LOGGER, timeout); return new SimpleResponse<>(response, true); @@ -478,8 +482,8 @@ public QueueProperties getProperties() { @ServiceMethod(returns = ReturnType.SINGLE) public Response getPropertiesWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = - () -> this.azureQueueStorage.getQueues().getPropertiesWithResponse(queueName, null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping( + () -> this.azureQueueStorage.getQueues().getPropertiesWithResponse(queueName, null, null, finalContext)); ResponseBase response = submitThreadPool(operation, LOGGER, timeout); return new SimpleResponse<>(response, ModelHelper.transformQueueProperties(response.getDeserializedHeaders())); @@ -562,8 +566,8 @@ public void setMetadata(Map metadata) { @ServiceMethod(returns = ReturnType.SINGLE) public Response setMetadataWithResponse(Map metadata, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> this.azureQueueStorage.getQueues() - .setMetadataNoCustomHeadersWithResponse(queueName, null, metadata, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getQueues() + .setMetadataNoCustomHeadersWithResponse(queueName, null, metadata, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } @@ -593,7 +597,8 @@ public Response setMetadataWithResponse(Map metadata, Dura @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable getAccessPolicy() { ResponseBase responseBase = - azureQueueStorage.getQueues().getAccessPolicyWithResponse(queueName, null, null, Context.NONE); + wrapCallWithExceptionMapping(() -> azureQueueStorage.getQueues().getAccessPolicyWithResponse(queueName, + null, null, Context.NONE)).get(); Supplier> response = () -> new PagedResponseBase<>( responseBase.getRequest(), responseBase.getStatusCode(), responseBase.getHeaders(), @@ -667,8 +672,8 @@ public void setAccessPolicy(List permissions) { public Response setAccessPolicyWithResponse(List permissions, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> this.azureQueueStorage.getQueues() - .setAccessPolicyNoCustomHeadersWithResponse(queueName, null, null, permissions, finalContext); + Supplier> operation = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getQueues() + .setAccessPolicyNoCustomHeadersWithResponse(queueName, null, null, permissions, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } @@ -724,8 +729,8 @@ public void clearMessages() { @ServiceMethod(returns = ReturnType.SINGLE) public Response clearMessagesWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> - this.azureQueueStorage.getMessages().clearNoCustomHeadersWithResponse(queueName, null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping(() -> + this.azureQueueStorage.getMessages().clearNoCustomHeadersWithResponse(queueName, null, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } @@ -898,9 +903,9 @@ public Response sendMessageWithResponse(BinaryData message, D String finalMessage = ModelHelper.encodeMessage(message, messageEncoding); QueueMessage queueMessage = new QueueMessage().setMessageText(finalMessage); - Supplier> operation = () -> - this.azureQueueStorage.getMessages().enqueueWithResponse(queueName, queueMessage, - visibilityTimeoutInSeconds, timeToLiveInSeconds, null, null, finalContext); + Supplier> operation + = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getMessages().enqueueWithResponse(queueName, + queueMessage, visibilityTimeoutInSeconds, timeToLiveInSeconds, null, null, finalContext)); ResponseBase response = submitThreadPool(operation, LOGGER, timeout); @@ -935,7 +940,7 @@ public Response sendMessageWithResponse(BinaryData message, D public QueueMessageItem receiveMessage() { List result = receiveMessagesWithOptionalTimeout(1, null, null, Context.NONE).stream() .collect(Collectors.toList()); - return result.size() == 0 ? null : result.get(0); + return result.isEmpty() ? null : result.get(0); } /** @@ -1019,9 +1024,9 @@ PagedIterable receiveMessagesWithOptionalTimeout(Integer maxMe Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; Integer visibilityTimeoutInSeconds = (visibilityTimeout == null) ? null : (int) visibilityTimeout.getSeconds(); - Supplier> operation = () -> - this.azureQueueStorage.getMessages() - .dequeueWithResponse(queueName, maxMessages, visibilityTimeoutInSeconds, null, null, finalContext); + Supplier> operation + = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getMessages() + .dequeueWithResponse(queueName, maxMessages, visibilityTimeoutInSeconds, null, null, finalContext)); ResponseBase response = submitThreadPool(operation, LOGGER, timeout); @@ -1146,8 +1151,9 @@ public PagedIterable peekMessages(Integer maxMessages, Durati PagedIterable peekMessagesWithOptionalTimeout(Integer maxMessages, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> - this.azureQueueStorage.getMessages().peekWithResponse(queueName, maxMessages, null, null, finalContext); + Supplier> operation + = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getMessages() + .peekWithResponse(queueName, maxMessages, null, null, finalContext)); ResponseBase response = submitThreadPool(operation, LOGGER, timeout); @@ -1283,9 +1289,9 @@ public Response updateMessageWithResponse(String messageId, } Context finalContext = context == null ? Context.NONE : context; Duration finalVisibilityTimeout = visibilityTimeout == null ? Duration.ZERO : visibilityTimeout; - Supplier> operation = () -> this.azureQueueStorage.getMessageIds() - .updateWithResponse(queueName, messageId, popReceipt, (int) finalVisibilityTimeout.getSeconds(), null, null, - message, finalContext); + Supplier> operation = wrapCallWithExceptionMapping( + () -> this.azureQueueStorage.getMessageIds().updateWithResponse(queueName, messageId, popReceipt, + (int) finalVisibilityTimeout.getSeconds(), null, null, message, finalContext)); ResponseBase response = submitThreadPool(operation, LOGGER, timeout); @@ -1355,8 +1361,8 @@ public void deleteMessage(String messageId, String popReceipt) { public Response deleteMessageWithResponse(String messageId, String popReceipt, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> this.azureQueueStorage.getMessageIds() - .deleteNoCustomHeadersWithResponse(queueName, messageId, popReceipt, null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getMessageIds() + .deleteNoCustomHeadersWithResponse(queueName, messageId, popReceipt, null, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceAsyncClient.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceAsyncClient.java index a819ff62cd70..8cb2e020ff82 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceAsyncClient.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceAsyncClient.java @@ -19,6 +19,7 @@ import com.azure.storage.common.implementation.StorageImplUtils; import com.azure.storage.common.sas.AccountSasSignatureValues; import com.azure.storage.queue.implementation.AzureQueueStorageImpl; +import com.azure.storage.queue.implementation.util.ModelHelper; import com.azure.storage.queue.models.QueueCorsRule; import com.azure.storage.queue.models.QueueItem; import com.azure.storage.queue.models.QueueMessageDecodingError; @@ -345,7 +346,8 @@ PagedFlux listQueuesWithOptionalTimeout(String marker, QueuesSegmentO (nextMarker, pageSize) -> StorageImplUtils.applyOptionalTimeout(this.client.getServices() .listQueuesSegmentSinglePageAsync(prefix, nextMarker, pageSize == null ? maxResultsPerPage : pageSize, include, - null, null, context), timeout); + null, null, context), timeout) + .onErrorMap(ModelHelper::mapToQueueStorageException); return new PagedFlux<>(pageSize -> retriever.apply(marker, pageSize), retriever); } @@ -416,6 +418,7 @@ public Mono> getPropertiesWithResponse() { Mono> getPropertiesWithResponse(Context context) { context = context == null ? Context.NONE : context; return client.getServices().getPropertiesWithResponseAsync(null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException) .map(response -> new SimpleResponse<>(response, response.getValue())); } @@ -539,7 +542,8 @@ public Mono> setPropertiesWithResponse(QueueServiceProperties pro Mono> setPropertiesWithResponse(QueueServiceProperties properties, Context context) { context = context == null ? Context.NONE : context; - return client.getServices().setPropertiesNoCustomHeadersWithResponseAsync(properties, null, null, context); + return client.getServices().setPropertiesNoCustomHeadersWithResponseAsync(properties, null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException); } /** @@ -604,6 +608,7 @@ public Mono> getStatisticsWithResponse() { Mono> getStatisticsWithResponse(Context context) { context = context == null ? Context.NONE : context; return client.getServices().getStatisticsWithResponseAsync(null, null, context) + .onErrorMap(ModelHelper::mapToQueueStorageException) .map(response -> new SimpleResponse<>(response, response.getValue())); } diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceClient.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceClient.java index 452b075cdca2..2cb239443b5c 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceClient.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceClient.java @@ -38,6 +38,7 @@ import java.util.function.Supplier; import static com.azure.storage.common.implementation.StorageImplUtils.submitThreadPool; +import static com.azure.storage.queue.implementation.util.ModelHelper.wrapCallWithExceptionMapping; /** * This class provides a client that contains all the operations for interacting with a queue account in Azure Storage. @@ -324,9 +325,9 @@ public PagedIterable listQueues(QueuesSegmentOptions options, Duratio } } BiFunction> retriever = (nextMarker, pageSize) -> { - Supplier> operation = () -> + Supplier> operation = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getServices().listQueuesSegmentSinglePage(prefix, nextMarker, - pageSize == null ? maxResultsPerPage : pageSize, include, null, null, finalContext); + pageSize == null ? maxResultsPerPage : pageSize, include, null, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); @@ -392,8 +393,8 @@ public QueueServiceProperties getProperties() { @ServiceMethod(returns = ReturnType.SINGLE) public Response getPropertiesWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = - () -> this.azureQueueStorage.getServices().getPropertiesWithResponse(null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping( + () -> this.azureQueueStorage.getServices().getPropertiesWithResponse(null, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } @@ -526,8 +527,8 @@ public void setProperties(QueueServiceProperties properties) { public Response setPropertiesWithResponse(QueueServiceProperties properties, Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> this.azureQueueStorage.getServices() - .setPropertiesNoCustomHeadersWithResponse(properties, null, null, finalContext); + Supplier> operation = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getServices() + .setPropertiesNoCustomHeadersWithResponse(properties, null, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } @@ -585,8 +586,9 @@ public QueueServiceStatistics getStatistics() { @ServiceMethod(returns = ReturnType.SINGLE) public Response getStatisticsWithResponse(Duration timeout, Context context) { Context finalContext = context == null ? Context.NONE : context; - Supplier> operation = () -> - this.azureQueueStorage.getServices().getStatisticsWithResponse(null, null, finalContext); + Supplier> operation + = wrapCallWithExceptionMapping(() -> this.azureQueueStorage.getServices() + .getStatisticsWithResponse(null, null, finalContext)); return submitThreadPool(operation, LOGGER, timeout); } diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessageIdsImpl.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessageIdsImpl.java index bcd0b3b7a5a2..0ec2e43734f2 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessageIdsImpl.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessageIdsImpl.java @@ -25,7 +25,7 @@ import com.azure.storage.queue.implementation.models.MessageIdsDeleteHeaders; import com.azure.storage.queue.implementation.models.MessageIdsUpdateHeaders; import com.azure.storage.queue.implementation.models.QueueMessage; -import com.azure.storage.queue.models.QueueStorageException; +import com.azure.storage.queue.implementation.models.QueueStorageExceptionInternal; import reactor.core.publisher.Mono; /** @@ -62,7 +62,7 @@ public final class MessageIdsImpl { public interface MessageIdsService { @Put("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> update(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("visibilitytimeout") int visibilitytimeout, @@ -73,7 +73,7 @@ Mono> update(@HostParam("url") Strin @Put("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> updateNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("visibilitytimeout") int visibilitytimeout, @@ -84,7 +84,7 @@ Mono> updateNoCustomHeaders(@HostParam("url") String url, @Put("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase updateSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("visibilitytimeout") int visibilitytimeout, @@ -95,7 +95,7 @@ ResponseBase updateSync(@HostParam("url") String @Put("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response updateNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("visibilitytimeout") int visibilitytimeout, @QueryParam("timeout") Integer timeout, @@ -105,7 +105,7 @@ Response updateNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Delete("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("timeout") Integer timeout, @@ -114,7 +114,7 @@ Mono> delete(@HostParam("url") Strin @Delete("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("timeout") Integer timeout, @@ -123,7 +123,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("timeout") Integer timeout, @@ -132,7 +132,7 @@ ResponseBase deleteSync(@HostParam("url") String @Delete("/{queueName}/messages/{messageid}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @PathParam("messageid") String messageid, @QueryParam("popreceipt") String popReceipt, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -161,7 +161,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathPara * analytics logs when storage analytics logging is enabled. * @param queueMessage A Message object which can be stored in a Queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -195,7 +195,7 @@ public Mono> updateWithResponseAsync * @param queueMessage A Message object which can be stored in a Queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -229,7 +229,7 @@ public Mono> updateWithResponseAsync * analytics logs when storage analytics logging is enabled. * @param queueMessage A Message object which can be stored in a Queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -262,7 +262,7 @@ public Mono updateAsync(String queueName, String messageid, String popRece * @param queueMessage A Message object which can be stored in a Queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -294,7 +294,7 @@ public Mono updateAsync(String queueName, String messageid, String popRece * analytics logs when storage analytics logging is enabled. * @param queueMessage A Message object which can be stored in a Queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -329,7 +329,7 @@ public Mono> updateNoCustomHeadersWithResponseAsync(String queueN * @param queueMessage A Message object which can be stored in a Queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -364,7 +364,7 @@ public Mono> updateNoCustomHeadersWithResponseAsync(String queueN * @param queueMessage A Message object which can be stored in a Queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -398,7 +398,7 @@ public ResponseBase updateWithResponse(String que * analytics logs when storage analytics logging is enabled. * @param queueMessage A Message object which can be stored in a Queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -430,7 +430,7 @@ public void update(String queueName, String messageid, String popReceipt, int vi * @param queueMessage A Message object which can be stored in a Queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -455,7 +455,7 @@ public Response updateNoCustomHeadersWithResponse(String queueName, String * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -481,7 +481,7 @@ public Mono> deleteWithResponseAsync * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -506,7 +506,7 @@ public Mono> deleteWithResponseAsync * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -531,7 +531,7 @@ public Mono deleteAsync(String queueName, String messageid, String popRece * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -555,7 +555,7 @@ public Mono deleteAsync(String queueName, String messageid, String popRece * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -581,7 +581,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String queueN * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -607,7 +607,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String queueN * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -632,7 +632,7 @@ public ResponseBase deleteWithResponse(String que * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -654,7 +654,7 @@ public void delete(String queueName, String messageid, String popReceipt, Intege * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessagesImpl.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessagesImpl.java index b0abe38ddbed..2324fe016023 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessagesImpl.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/MessagesImpl.java @@ -30,8 +30,8 @@ import com.azure.storage.queue.implementation.models.PeekedMessageItemInternalWrapper; import com.azure.storage.queue.implementation.models.QueueMessage; import com.azure.storage.queue.implementation.models.QueueMessageItemInternalWrapper; +import com.azure.storage.queue.implementation.models.QueueStorageExceptionInternal; import com.azure.storage.queue.implementation.models.SendMessageResultWrapper; -import com.azure.storage.queue.models.QueueStorageException; import reactor.core.publisher.Mono; /** @@ -67,7 +67,7 @@ public final class MessagesImpl { public interface MessagesService { @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> dequeue( @HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("numofmessages") Integer numberOfMessages, @@ -77,7 +77,7 @@ Mono> dequ @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> dequeueNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("timeout") Integer timeout, @@ -86,7 +86,7 @@ Mono> dequeueNoCustomHeaders(@HostPara @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase dequeueSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("timeout") Integer timeout, @@ -95,7 +95,7 @@ ResponseBase dequeueSyn @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response dequeueNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("timeout") Integer timeout, @@ -104,7 +104,7 @@ Response dequeueNoCustomHeadersSync(@HostParam( @Delete("/{queueName}/messages") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> clear(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -112,7 +112,7 @@ Mono> clear(@HostParam("url") String ur @Delete("/{queueName}/messages") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> clearNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -120,7 +120,7 @@ Mono> clearNoCustomHeaders(@HostParam("url") String url, @Delete("/{queueName}/messages") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase clearSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -128,7 +128,7 @@ ResponseBase clearSync(@HostParam("url") String url, @Delete("/{queueName}/messages") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response clearNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("Accept") String accept, @@ -136,7 +136,7 @@ Response clearNoCustomHeadersSync(@HostParam("url") String url, @PathParam @Post("/{queueName}/messages") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> enqueue(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("messagettl") Integer messageTimeToLive, @QueryParam("timeout") Integer timeout, @@ -146,7 +146,7 @@ Mono> enqueue(@Ho @Post("/{queueName}/messages") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> enqueueNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("messagettl") Integer messageTimeToLive, @QueryParam("timeout") Integer timeout, @@ -156,7 +156,7 @@ Mono> enqueueNoCustomHeaders(@HostParam("url" @Post("/{queueName}/messages") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase enqueueSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("messagettl") Integer messageTimeToLive, @QueryParam("timeout") Integer timeout, @@ -166,7 +166,7 @@ ResponseBase enqueueSync(@Host @Post("/{queueName}/messages") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response enqueueNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("visibilitytimeout") Integer visibilitytimeout, @QueryParam("messagettl") Integer messageTimeToLive, @QueryParam("timeout") Integer timeout, @@ -176,7 +176,7 @@ Response enqueueNoCustomHeadersSync(@HostParam("url") @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> peek(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("peekonly") String peekonly, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("timeout") Integer timeout, @@ -185,7 +185,7 @@ Mono> peek(@ @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> peekNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("peekonly") String peekonly, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("timeout") Integer timeout, @@ -194,7 +194,7 @@ Mono> peekNoCustomHeaders(@HostParam( @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase peekSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("peekonly") String peekonly, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("timeout") Integer timeout, @@ -203,7 +203,7 @@ ResponseBase peekSync(@Ho @Get("/{queueName}/messages") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response peekNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("peekonly") String peekonly, @QueryParam("numofmessages") Integer numberOfMessages, @QueryParam("timeout") Integer timeout, @@ -228,7 +228,7 @@ Response peekNoCustomHeadersSync(@HostParam("u * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -259,7 +259,7 @@ public Mono dequeueAsync(String queueName, Inte * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue on successful completion of {@link Mono}. */ @@ -347,7 +347,7 @@ public Mono dequeueAsync(String queueName, Inte * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue along with {@link Response} on successful * completion of {@link Mono}. @@ -378,7 +378,7 @@ public Mono> dequeueNoCustomHeadersWit * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue along with {@link Response} on successful * completion of {@link Mono}. @@ -409,7 +409,7 @@ public Mono> dequeueNoCustomHeadersWit * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue along with {@link ResponseBase}. */ @@ -438,7 +438,7 @@ public ResponseBase deq * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue. */ @@ -467,7 +467,7 @@ public QueueMessageItemInternalWrapper dequeue(String queueName, Integer numberO * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Get Messages on a Queue along with {@link Response}. */ @@ -489,7 +489,7 @@ public Response dequeueNoCustomHeadersWithRespo * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -512,7 +512,7 @@ public Mono> clearWithResponseAsync(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -534,7 +534,7 @@ public Mono> clearWithResponseAsync(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -554,7 +554,7 @@ public Mono clearAsync(String queueName, Integer timeout, String requestId * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -573,7 +573,7 @@ public Mono clearAsync(String queueName, Integer timeout, String requestId * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -596,7 +596,7 @@ public Mono> clearNoCustomHeadersWithResponseAsync(String queueNa * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -619,7 +619,7 @@ public Mono> clearNoCustomHeadersWithResponseAsync(String queueNa * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -641,7 +641,7 @@ public ResponseBase clearWithResponse(String queueNa * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -660,7 +660,7 @@ public void clear(String queueName, Integer timeout, String requestId) { * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -695,7 +695,7 @@ public Response clearNoCustomHeadersWithResponse(String queueName, Integer * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -733,7 +733,7 @@ public Mono> enqu * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -770,7 +770,7 @@ public Mono> enqu * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue on successful completion of {@link Mono}. */ @@ -805,7 +805,7 @@ public Mono enqueueAsync(String queueName, QueueMessag * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue on successful completion of {@link Mono}. */ @@ -839,7 +839,7 @@ public Mono enqueueAsync(String queueName, QueueMessag * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue along with {@link Response} on successful * completion of {@link Mono}. @@ -878,7 +878,7 @@ public Mono> enqueueNoCustomHeadersWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue along with {@link Response} on successful * completion of {@link Mono}. @@ -916,7 +916,7 @@ public Mono> enqueueNoCustomHeadersWithRespon * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue along with {@link ResponseBase}. */ @@ -952,7 +952,7 @@ public ResponseBase enqueueWit * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue. */ @@ -987,7 +987,7 @@ public SendMessageResultWrapper enqueue(String queueName, QueueMessage queueMess * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Put Message on a Queue along with {@link Response}. */ @@ -1014,7 +1014,7 @@ public Response enqueueNoCustomHeadersWithResponse(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -1043,7 +1043,7 @@ public Response enqueueNoCustomHeadersWithResponse(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue along with {@link ResponseBase} on successful * completion of {@link Mono}. @@ -1071,7 +1071,7 @@ public Mono> * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue on successful completion of {@link Mono}. */ @@ -1097,7 +1097,7 @@ public Mono peekAsync(String queueName, Intege * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue on successful completion of {@link Mono}. */ @@ -1122,7 +1122,7 @@ public Mono peekAsync(String queueName, Intege * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue along with {@link Response} on successful * completion of {@link Mono}. @@ -1151,7 +1151,7 @@ public Mono> peekNoCustomHeadersWithR * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue along with {@link Response} on successful * completion of {@link Mono}. @@ -1180,7 +1180,7 @@ public Mono> peekNoCustomHeadersWithR * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue along with {@link ResponseBase}. */ @@ -1207,7 +1207,7 @@ public ResponseBase peekW * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue. */ @@ -1232,7 +1232,7 @@ public PeekedMessageItemInternalWrapper peek(String queueName, Integer numberOfM * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling Peek Messages on a Queue along with {@link Response}. */ diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/QueuesImpl.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/QueuesImpl.java index d3f5850413ad..17a56887e03a 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/QueuesImpl.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/QueuesImpl.java @@ -30,8 +30,8 @@ import com.azure.storage.queue.implementation.models.QueueSignedIdentifierWrapper; import com.azure.storage.queue.implementation.models.QueuesSetAccessPolicyHeaders; import com.azure.storage.queue.implementation.models.QueuesSetMetadataHeaders; +import com.azure.storage.queue.implementation.models.QueueStorageExceptionInternal; import com.azure.storage.queue.models.QueueSignedIdentifier; -import com.azure.storage.queue.models.QueueStorageException; import java.util.List; import java.util.Map; import reactor.core.publisher.Mono; @@ -69,7 +69,7 @@ public final class QueuesImpl { public interface QueuesService { @Put("/{queueName}") @ExpectedResponses({ 201, 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> create(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @HeaderParam("x-ms-version") String version, @@ -78,7 +78,7 @@ Mono> create(@HostParam("url") String ur @Put("/{queueName}") @ExpectedResponses({ 201, 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> createNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @HeaderParam("x-ms-version") String version, @@ -87,7 +87,7 @@ Mono> createNoCustomHeaders(@HostParam("url") String url, @Put("/{queueName}") @ExpectedResponses({ 201, 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase createSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @HeaderParam("x-ms-version") String version, @@ -96,7 +96,7 @@ ResponseBase createSync(@HostParam("url") String url, @Put("/{queueName}") @ExpectedResponses({ 201, 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response createNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -104,7 +104,7 @@ Response createNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Delete("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> delete(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -112,7 +112,7 @@ Mono> delete(@HostParam("url") String ur @Delete("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> deleteNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -120,7 +120,7 @@ Mono> deleteNoCustomHeaders(@HostParam("url") String url, @Delete("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase deleteSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -128,7 +128,7 @@ ResponseBase deleteSync(@HostParam("url") String url, @Delete("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("Accept") String accept, @@ -136,7 +136,7 @@ Response deleteNoCustomHeadersSync(@HostParam("url") String url, @PathPara @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getProperties(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -145,7 +145,7 @@ Mono> getProperties(@HostParam("u @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -154,7 +154,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase getPropertiesSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -163,7 +163,7 @@ ResponseBase getPropertiesSync(@HostParam("url @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -172,7 +172,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> setMetadata(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -181,7 +181,7 @@ Mono> setMetadata(@HostParam("url") @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -190,7 +190,7 @@ Mono> setMetadataNoCustomHeaders(@HostParam("url") String url, @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase setMetadataSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -199,7 +199,7 @@ ResponseBase setMetadataSync(@HostParam("url") S @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map metadata, @@ -208,7 +208,7 @@ Response setMetadataNoCustomHeadersSync(@HostParam("url") String url, @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getAccessPolicy( @HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -217,7 +217,7 @@ Mono> g @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getAccessPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -226,7 +226,7 @@ Mono> getAccessPolicyNoCustomHeaders(@Hos @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase getAccessPolicySync( @HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -235,7 +235,7 @@ ResponseBase getAcce @Get("/{queueName}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response getAccessPolicyNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -244,7 +244,7 @@ Response getAccessPolicyNoCustomHeadersSync(@HostP @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> setAccessPolicy(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -254,7 +254,7 @@ Mono> setAccessPolicy(@HostPara @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> setAccessPolicyNoCustomHeaders(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -264,7 +264,7 @@ Mono> setAccessPolicyNoCustomHeaders(@HostParam("url") String url @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase setAccessPolicySync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -274,7 +274,7 @@ ResponseBase setAccessPolicySync(@HostParam( @Put("/{queueName}") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response setAccessPolicyNoCustomHeadersSync(@HostParam("url") String url, @PathParam("queueName") String queueName, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -297,7 +297,7 @@ Response setAccessPolicyNoCustomHeadersSync(@HostParam("url") String url, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -324,7 +324,7 @@ public Mono> createWithResponseAsync(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -350,7 +350,7 @@ public Mono> createWithResponseAsync(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -374,7 +374,7 @@ public Mono createAsync(String queueName, Integer timeout, Map createAsync(String queueName, Integer timeout, Map> createNoCustomHeadersWithResponseAsync(String queueN * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -453,7 +453,7 @@ public Mono> createNoCustomHeadersWithResponseAsync(String queueN * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -479,7 +479,7 @@ public ResponseBase createWithResponse(String queueNa * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -502,7 +502,7 @@ public void create(String queueName, Integer timeout, Map metada * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -524,7 +524,7 @@ public Response createNoCustomHeadersWithResponse(String queueName, Intege * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -547,7 +547,7 @@ public Mono> deleteWithResponseAsync(Str * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -569,7 +569,7 @@ public Mono> deleteWithResponseAsync(Str * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -589,7 +589,7 @@ public Mono deleteAsync(String queueName, Integer timeout, String requestI * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -608,7 +608,7 @@ public Mono deleteAsync(String queueName, Integer timeout, String requestI * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -631,7 +631,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String queueN * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -654,7 +654,7 @@ public Mono> deleteNoCustomHeadersWithResponseAsync(String queueN * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -676,7 +676,7 @@ public ResponseBase deleteWithResponse(String queueNa * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -695,7 +695,7 @@ public void delete(String queueName, Integer timeout, String requestId) { * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -718,7 +718,7 @@ public Response deleteNoCustomHeadersWithResponse(String queueName, Intege * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -743,7 +743,7 @@ public Mono> getPropertiesWithRes * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -767,7 +767,7 @@ public Mono> getPropertiesWithRes * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -788,7 +788,7 @@ public Mono getPropertiesAsync(String queueName, Integer timeout, String r * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -808,7 +808,7 @@ public Mono getPropertiesAsync(String queueName, Integer timeout, String r * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -833,7 +833,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -858,7 +858,7 @@ public Mono> getPropertiesNoCustomHeadersWithResponseAsync(String * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -882,7 +882,7 @@ public ResponseBase getPropertiesWithResponse( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -902,7 +902,7 @@ public void getProperties(String queueName, Integer timeout, String requestId) { * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -929,7 +929,7 @@ public Response getPropertiesNoCustomHeadersWithResponse(String queueName, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -957,7 +957,7 @@ public Mono> setMetadataWithRespons * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -984,7 +984,7 @@ public Mono> setMetadataWithRespons * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1009,7 +1009,7 @@ public Mono setMetadataAsync(String queueName, Integer timeout, Map setMetadataAsync(String queueName, Integer timeout, Map> setMetadataNoCustomHeadersWithResponseAsync(String q * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1090,7 +1090,7 @@ public Mono> setMetadataNoCustomHeadersWithResponseAsync(String q * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1117,7 +1117,7 @@ public ResponseBase setMetadataWithResponse(Stri * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1140,7 +1140,7 @@ public void setMetadata(String queueName, Integer timeout, Map m * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -1164,7 +1164,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String queueName, I * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -1190,7 +1190,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String queueName, I * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link ResponseBase} on successful completion of * {@link Mono}. @@ -1215,7 +1215,7 @@ public Response setMetadataNoCustomHeadersWithResponse(String queueName, I * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers on successful completion of {@link Mono}. */ @@ -1238,7 +1238,7 @@ public Mono getAccessPolicyAsync(String queueName, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers on successful completion of {@link Mono}. */ @@ -1260,7 +1260,7 @@ public Mono getAccessPolicyAsync(String queueName, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link Response} on successful completion of {@link Mono}. */ @@ -1285,7 +1285,7 @@ public Mono getAccessPolicyAsync(String queueName, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link Response} on successful completion of {@link Mono}. */ @@ -1310,7 +1310,7 @@ public Mono> getAccessPolicyNoCustomHeade * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link ResponseBase}. */ @@ -1334,7 +1334,7 @@ public Mono> getAccessPolicyNoCustomHeade * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers. */ @@ -1355,7 +1355,7 @@ public QueueSignedIdentifierWrapper getAccessPolicy(String queueName, Integer ti * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a collection of signed identifiers along with {@link Response}. */ @@ -1379,7 +1379,7 @@ public Response getAccessPolicyNoCustomHeadersWith * analytics logs when storage analytics logging is enabled. * @param queueAcl the acls for the queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1405,7 +1405,7 @@ public Mono> setAccessPolicyWit * @param queueAcl the acls for the queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -1430,7 +1430,7 @@ public Mono> setAccessPolicyWit * analytics logs when storage analytics logging is enabled. * @param queueAcl the acls for the queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1453,7 +1453,7 @@ public Mono setAccessPolicyAsync(String queueName, Integer timeout, String * @param queueAcl the acls for the queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -1475,7 +1475,7 @@ public Mono setAccessPolicyAsync(String queueName, Integer timeout, String * analytics logs when storage analytics logging is enabled. * @param queueAcl the acls for the queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1501,7 +1501,7 @@ public Mono> setAccessPolicyNoCustomHeadersWithResponseAsync(Stri * @param queueAcl the acls for the queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -1527,7 +1527,7 @@ public Mono> setAccessPolicyNoCustomHeadersWithResponseAsync(Stri * @param queueAcl the acls for the queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -1552,7 +1552,7 @@ public ResponseBase setAccessPolicyWithRespo * analytics logs when storage analytics logging is enabled. * @param queueAcl the acls for the queue. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1573,7 +1573,7 @@ public void setAccessPolicy(String queueName, Integer timeout, String requestId, * @param queueAcl the acls for the queue. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/ServicesImpl.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/ServicesImpl.java index fb4c35233cce..322dbb50f2c3 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/ServicesImpl.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/ServicesImpl.java @@ -27,6 +27,7 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.storage.queue.implementation.models.ListQueuesSegmentResponse; +import com.azure.storage.queue.implementation.models.QueueStorageExceptionInternal; import com.azure.storage.queue.implementation.models.ServicesGetPropertiesHeaders; import com.azure.storage.queue.implementation.models.ServicesGetStatisticsHeaders; import com.azure.storage.queue.implementation.models.ServicesListQueuesSegmentHeaders; @@ -35,7 +36,6 @@ import com.azure.storage.queue.models.QueueItem; import com.azure.storage.queue.models.QueueServiceProperties; import com.azure.storage.queue.models.QueueServiceStatistics; -import com.azure.storage.queue.models.QueueStorageException; import java.util.List; import java.util.Objects; import java.util.stream.Collectors; @@ -74,7 +74,7 @@ public final class ServicesImpl { public interface ServicesService { @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> setProperties(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -84,7 +84,7 @@ Mono> setProperties(@HostParam( @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -94,7 +94,7 @@ Mono> setPropertiesNoCustomHeaders(@HostParam("url") String url, @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase setPropertiesSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -104,7 +104,7 @@ ResponseBase setPropertiesSync(@HostParam("u @Put("/") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -114,7 +114,7 @@ Response setPropertiesNoCustomHeadersSync(@HostParam("url") String url, @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getProperties( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -123,7 +123,7 @@ Mono> getProp @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getPropertiesNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -132,7 +132,7 @@ Mono> getPropertiesNoCustomHeaders(@HostParam(" @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase getPropertiesSync( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -141,7 +141,7 @@ ResponseBase getProperties @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response getPropertiesNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -150,7 +150,7 @@ Response getPropertiesNoCustomHeadersSync(@HostParam("ur @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getStatistics( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -159,7 +159,7 @@ Mono> getStat @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> getStatisticsNoCustomHeaders(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -168,7 +168,7 @@ Mono> getStatisticsNoCustomHeaders(@HostParam(" @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase getStatisticsSync( @HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -177,7 +177,7 @@ ResponseBase getStatistics @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response getStatisticsNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("restype") String restype, @QueryParam("comp") String comp, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @@ -186,7 +186,7 @@ Response getStatisticsNoCustomHeadersSync(@HostParam("ur @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> listQueuesSegment( @HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @@ -196,7 +196,7 @@ Mono> @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> listQueuesSegmentNoCustomHeaders(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @QueryParam("include") String include, @@ -206,7 +206,7 @@ Mono> listQueuesSegmentNoCustomHeaders(@Host @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase listQueuesSegmentSync( @HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @@ -216,7 +216,7 @@ ResponseBase listQu @Get("/") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response listQueuesSegmentNoCustomHeadersSync(@HostParam("url") String url, @QueryParam("comp") String comp, @QueryParam("prefix") String prefix, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @QueryParam("include") String include, @@ -226,7 +226,7 @@ Response listQueuesSegmentNoCustomHeadersSync(@HostPa @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Mono> listQueuesSegmentNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -234,7 +234,7 @@ Mono> listQueuesSegmentNextNoCustomHeaders( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -242,7 +242,7 @@ Mono> listQueuesSegmentNextNoCustomHeaders( @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) ResponseBase listQueuesSegmentNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -250,7 +250,7 @@ ResponseBase li @Get("{nextLink}") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(QueueStorageException.class) + @UnexpectedResponseExceptionType(QueueStorageExceptionInternal.class) Response listQueuesSegmentNextNoCustomHeadersSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("url") String url, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @@ -268,7 +268,7 @@ Response listQueuesSegmentNextNoCustomHeadersSync( * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -294,7 +294,7 @@ public Mono> setPropertiesWithR * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -319,7 +319,7 @@ public Mono> setPropertiesWithR * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -342,7 +342,7 @@ public Mono setPropertiesAsync(QueueServiceProperties queueServiceProperti * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -364,7 +364,7 @@ public Mono setPropertiesAsync(QueueServiceProperties queueServiceProperti * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -390,7 +390,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @@ -416,7 +416,7 @@ public Mono> setPropertiesNoCustomHeadersWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link ResponseBase}. */ @@ -441,7 +441,7 @@ public ResponseBase setPropertiesWithRespons * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -461,7 +461,7 @@ public void setProperties(QueueServiceProperties queueServiceProperties, Integer * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ @@ -485,7 +485,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(QueueServicePrope * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link ResponseBase} on successful completion of {@link Mono}. @@ -511,7 +511,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(QueueServicePrope * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link ResponseBase} on successful completion of {@link Mono}. @@ -536,7 +536,7 @@ public Response setPropertiesNoCustomHeadersWithResponse(QueueServicePrope * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules on successful completion of {@link Mono}. @@ -557,7 +557,7 @@ public Mono getPropertiesAsync(Integer timeout, String r * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules on successful completion of {@link Mono}. @@ -578,7 +578,7 @@ public Mono getPropertiesAsync(Integer timeout, String r * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link Response} on successful completion of {@link Mono}. @@ -604,7 +604,7 @@ public Mono> getPropertiesNoCustomHeadersWithRe * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link Response} on successful completion of {@link Mono}. @@ -630,7 +630,7 @@ public Mono> getPropertiesNoCustomHeadersWithRe * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link ResponseBase}. @@ -655,7 +655,7 @@ public ResponseBase getPro * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules. @@ -676,7 +676,7 @@ public QueueServiceProperties getProperties(Integer timeout, String requestId) { * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of a storage account's Queue service, including properties for Storage Analytics and CORS * (Cross-Origin Resource Sharing) rules along with {@link Response}. @@ -701,7 +701,7 @@ public Response getPropertiesNoCustomHeadersWithResponse * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -726,7 +726,7 @@ public Response getPropertiesNoCustomHeadersWithResponse * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link ResponseBase} on successful completion of {@link Mono}. */ @@ -750,7 +750,7 @@ public Response getPropertiesNoCustomHeadersWithResponse * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service on successful completion of {@link Mono}. */ @@ -770,7 +770,7 @@ public Mono getStatisticsAsync(Integer timeout, String r * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service on successful completion of {@link Mono}. */ @@ -790,7 +790,7 @@ public Mono getStatisticsAsync(Integer timeout, String r * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link Response} on successful completion of {@link Mono}. */ @@ -815,7 +815,7 @@ public Mono> getStatisticsNoCustomHeadersWithRe * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link Response} on successful completion of {@link Mono}. */ @@ -840,7 +840,7 @@ public Mono> getStatisticsNoCustomHeadersWithRe * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link ResponseBase}. */ @@ -864,7 +864,7 @@ public ResponseBase getSta * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service. */ @@ -884,7 +884,7 @@ public QueueServiceStatistics getStatistics(Integer timeout, String requestId) { * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return stats for the storage service along with {@link Response}. */ @@ -920,7 +920,7 @@ public Response getStatisticsNoCustomHeadersWithResponse * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -965,7 +965,7 @@ public Mono> listQueuesSegmentSinglePageAsync(String pr * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1009,7 +1009,7 @@ public Mono> listQueuesSegmentSinglePageAsync(String pr * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedFlux}. @@ -1045,7 +1045,7 @@ public PagedFlux listQueuesSegmentAsync(String prefix, String marker, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedFlux}. @@ -1080,7 +1080,7 @@ public PagedFlux listQueuesSegmentAsync(String prefix, String marker, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1125,7 +1125,7 @@ public Mono> listQueuesSegmentNoCustomHeadersSinglePage * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1169,7 +1169,7 @@ public Mono> listQueuesSegmentNoCustomHeadersSinglePage * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedFlux}. @@ -1204,7 +1204,7 @@ public PagedFlux listQueuesSegmentNoCustomHeadersAsync(String prefix, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedFlux}. @@ -1239,7 +1239,7 @@ public PagedFlux listQueuesSegmentNoCustomHeadersAsync(String prefix, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1283,7 +1283,7 @@ public PagedResponse listQueuesSegmentSinglePage(String prefix, Strin * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1326,7 +1326,7 @@ public PagedResponse listQueuesSegmentSinglePage(String prefix, Strin * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedIterable}. @@ -1362,7 +1362,7 @@ public PagedIterable listQueuesSegment(String prefix, String marker, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedIterable}. @@ -1397,7 +1397,7 @@ public PagedIterable listQueuesSegment(String prefix, String marker, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1441,7 +1441,7 @@ public PagedResponse listQueuesSegmentNoCustomHeadersSinglePage(Strin * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1484,7 +1484,7 @@ public PagedResponse listQueuesSegmentNoCustomHeadersSinglePage(Strin * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedIterable}. @@ -1519,7 +1519,7 @@ public PagedIterable listQueuesSegmentNoCustomHeaders(String prefix, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service as paginated response with * {@link PagedIterable}. @@ -1540,7 +1540,7 @@ public PagedIterable listQueuesSegmentNoCustomHeaders(String prefix, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1565,7 +1565,7 @@ public Mono> listQueuesSegmentNextSinglePageAsync(Strin * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1589,7 +1589,7 @@ public Mono> listQueuesSegmentNextSinglePageAsync(Strin * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1615,7 +1615,7 @@ public Mono> listQueuesSegmentNextNoCustomHeadersSingle * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse} on * successful completion of {@link Mono}. @@ -1640,7 +1640,7 @@ public Mono> listQueuesSegmentNextNoCustomHeadersSingle * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1664,7 +1664,7 @@ public PagedResponse listQueuesSegmentNextSinglePage(String nextLink, * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1688,7 +1688,7 @@ public PagedResponse listQueuesSegmentNextSinglePage(String nextLink, * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ @@ -1711,7 +1711,7 @@ public PagedResponse listQueuesSegmentNextNoCustomHeadersSinglePage(S * analytics logs when storage analytics logging is enabled. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws QueueStorageException thrown if the request is rejected by server. + * @throws QueueStorageExceptionInternal thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the object returned when calling List Queues on a Queue Service along with {@link PagedResponse}. */ diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/models/QueueStorageError.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/models/QueueStorageError.java new file mode 100644 index 000000000000..b9df9d0e9508 --- /dev/null +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/models/QueueStorageError.java @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.queue.implementation.models; + +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.xml.XmlReader; +import com.azure.xml.XmlSerializable; +import com.azure.xml.XmlToken; +import com.azure.xml.XmlWriter; + +import javax.xml.namespace.QName; +import javax.xml.stream.XMLStreamException; +import java.io.IOException; + +/** + * Represents an error response returned by the Azure Storage Queues service. + */ +public final class QueueStorageError + implements JsonSerializable, XmlSerializable { + private String code; + private String message; + private String queryParameterName; + private String queryParameterValue; + private String reason; + private String extendedErrorDetail; + + private QueueStorageError() { + } + + /** + * Gets the error code returned by the Azure Storage Queues service. + * + * @return The error code. + */ + public String getCode() { + return code; + } + + /** + * Gets the error message returned by the Azure Storage Queues service. + * + * @return The error message. + */ + public String getMessage() { + return message; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + return jsonWriter.writeStartObject("Error") + .writeStringField("Code", code) + .writeStringField("Message", this.message) + .writeStringField("QueryParameterName", this.queryParameterName) + .writeStringField("QueryParameterValue", this.queryParameterValue) + .writeStringField("Reason", this.reason) + .writeStringField("ExtendedErrorDetail", this.extendedErrorDetail) + .writeEndObject(); + } + + /** + * Reads an instance of QueueStorageError from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of QueueStorageError if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the QueueStorageError. + */ + public static QueueStorageError fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + // Buffer the next JSON object as QueueStorageError can take two forms: + // + // - A QueueStorageError object + // - A QueueStorageError object wrapped in an "error" node. + JsonReader bufferedReader = reader.bufferObject(); + bufferedReader.nextToken(); // Get to the START_OBJECT token. + while (bufferedReader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = bufferedReader.getFieldName(); + bufferedReader.nextToken(); + + if ("error".equals(fieldName)) { + // If the QueueStorageError was wrapped in the "error" node begin reading it now. + return readQueueError(bufferedReader); + } else { + bufferedReader.skipChildren(); + } + } + + // Otherwise reset the JsonReader and read the whole JSON object. + return readQueueError(bufferedReader.reset()); + }); + } + + private static QueueStorageError readQueueError(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + QueueStorageError deserializedStorageError = new QueueStorageError(); + + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedStorageError.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedStorageError.message = reader.getString(); + } else if ("queryParameterName".equals(fieldName)) { + deserializedStorageError.queryParameterName = reader.getString(); + } else if ("queryParameterValue".equals(fieldName)) { + deserializedStorageError.queryParameterValue = reader.getString(); + } else if ("reason".equals(fieldName)) { + deserializedStorageError.reason = reader.getString(); + } else if ("extendedErrorDetail".equals(fieldName)) { + deserializedStorageError.extendedErrorDetail = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageError; + }); + } + + @Override + public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName) throws XMLStreamException { + rootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + xmlWriter.writeStartElement(rootElementName); + xmlWriter.writeStringElement("Code", code); + xmlWriter.writeStringElement("Message", this.message); + xmlWriter.writeStringElement("QueryParameterName", this.queryParameterName); + xmlWriter.writeStringElement("QueryParameterValue", this.queryParameterValue); + xmlWriter.writeStringElement("Reason", this.reason); + xmlWriter.writeStringElement("ExtendedErrorDetail", this.extendedErrorDetail); + return xmlWriter.writeEndElement(); + } + + /** + * Reads an instance of QueueStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @return An instance of QueueStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the QueueStorageError. + */ + public static QueueStorageError fromXml(XmlReader xmlReader) throws XMLStreamException { + return fromXml(xmlReader, null); + } + + /** + * Reads an instance of QueueStorageError from the XmlReader. + * + * @param xmlReader The XmlReader being read. + * @param rootElementName Optional root element name to override the default defined by the model. Used to support + * cases where the model can deserialize from different root element names. + * @return An instance of QueueStorageError if the XmlReader was pointing to an instance of it, or null if it was + * pointing to XML null. + * @throws XMLStreamException If an error occurs while reading the QueueStorageError. + */ + public static QueueStorageError fromXml(XmlReader xmlReader, String rootElementName) throws XMLStreamException { + String finalRootElementName = CoreUtils.isNullOrEmpty(rootElementName) ? "Error" : rootElementName; + return xmlReader.readObject(finalRootElementName, reader -> { + QueueStorageError deserializedStorageError = new QueueStorageError(); + while (reader.nextElement() != XmlToken.END_ELEMENT) { + QName elementName = reader.getElementName(); + + if ("Code".equals(elementName.getLocalPart())) { + deserializedStorageError.code = reader.getStringElement(); + } else if ("Message".equals(elementName.getLocalPart())) { + deserializedStorageError.message = reader.getStringElement(); + } else if ("QueryParameterName".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterName = reader.getStringElement(); + } else if ("QueryParameterValue".equals(elementName.getLocalPart())) { + deserializedStorageError.queryParameterValue = reader.getStringElement(); + } else if ("Reason".equals(elementName.getLocalPart())) { + deserializedStorageError.reason = reader.getStringElement(); + } else if ("ExtendedErrorDetail".equals(elementName.getLocalPart())) { + deserializedStorageError.extendedErrorDetail = reader.getStringElement(); + } + } + + return deserializedStorageError; + }); + } +} diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/models/QueueStorageExceptionInternal.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/models/QueueStorageExceptionInternal.java new file mode 100644 index 000000000000..fdfed814fe06 --- /dev/null +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/models/QueueStorageExceptionInternal.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.queue.implementation.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; +import com.azure.storage.common.implementation.StorageImplUtils; + +/** + * A {@code QueueStorageExceptionInternal} is thrown whenever Azure Storage successfully returns an error code that + * is not 200-level. Users can inspect the status code and error code to determine the cause of the error response. The + * exception message may also contain more detailed information depending on the type of error. The user may also + * inspect the raw HTTP response or call toString to get the full payload of the error response if present. Note that + * even some expected "errors" will be thrown as a {@code QueueStorageExceptionInternal}. For example, some users may + * perform a getProperties request on an entity to determine whether it exists or not. If it does not exists, an + * exception will be thrown even though this may be considered an expected indication of absence in this case. + */ +public final class QueueStorageExceptionInternal extends HttpResponseException { + /** + * Constructs a {@code QueueStorageExceptionInternal}. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized error response. + */ + public QueueStorageExceptionInternal(String message, HttpResponse response, QueueStorageError value) { + super(StorageImplUtils.convertStorageExceptionMessage(message, response), response, value); + } + + @Override + public QueueStorageError getValue() { + return (QueueStorageError) super.getValue(); + } +} diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/BuilderHelper.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/BuilderHelper.java index 17f3f2894449..64875ce9fb53 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/BuilderHelper.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/BuilderHelper.java @@ -6,6 +6,7 @@ import com.azure.core.credential.AzureSasCredential; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; @@ -265,7 +266,7 @@ private static UserAgentPolicy getUserAgentPolicy(Configuration configuration, H */ private static HttpPipelinePolicy getResponseValidationPolicy() { return new ResponseValidationPolicyBuilder() - .addOptionalEcho(Constants.HeaderConstants.CLIENT_REQUEST_ID) + .addOptionalEcho(HttpHeaderName.X_MS_CLIENT_REQUEST_ID) .build(); } diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/ModelHelper.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/ModelHelper.java index 36e979bc651e..d7c1fc771b79 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/ModelHelper.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/implementation/util/ModelHelper.java @@ -8,13 +8,16 @@ import com.azure.storage.queue.QueueMessageEncoding; import com.azure.storage.queue.implementation.models.PeekedMessageItemInternal; import com.azure.storage.queue.implementation.models.QueueMessageItemInternal; +import com.azure.storage.queue.implementation.models.QueueStorageExceptionInternal; import com.azure.storage.queue.implementation.models.QueuesGetPropertiesHeaders; import com.azure.storage.queue.models.PeekedMessageItem; import com.azure.storage.queue.models.QueueMessageItem; import com.azure.storage.queue.models.QueueProperties; +import com.azure.storage.queue.models.QueueStorageException; import java.util.Base64; import java.util.Objects; +import java.util.function.Supplier; public class ModelHelper { private static final ClientLogger LOGGER = new ClientLogger(ModelHelper.class); @@ -85,4 +88,34 @@ public static QueueProperties transformQueueProperties(QueuesGetPropertiesHeader return new QueueProperties(headers.getXMsMeta(), headers.getXMsApproximateMessagesCount()); } + /** + * Maps the internal exception to a public exception, if and only if {@code internal} is an instance of + * {@link QueueStorageExceptionInternal} and it will be mapped to {@link QueueStorageException}. + *

+ * The internal exception is required as the public exception was created using Object as the exception value. This + * was incorrect and should have been a specific type that was XML deserializable. So, an internal exception was + * added to handle this and we map that to the public exception, keeping the API the same. + * + * @param internal The internal exception. + * @return The public exception. + */ + public static Throwable mapToQueueStorageException(Throwable internal) { + if (internal instanceof QueueStorageExceptionInternal) { + QueueStorageExceptionInternal internalException = (QueueStorageExceptionInternal) internal; + return new QueueStorageException(internalException.getMessage(), internalException.getResponse(), + internalException.getValue()); + } + + return internal; + } + + public static Supplier wrapCallWithExceptionMapping(Supplier serviceCall) { + return () -> { + try { + return serviceCall.get(); + } catch (QueueStorageExceptionInternal internal) { + throw (QueueStorageException) mapToQueueStorageException(internal); + } + }; + } } diff --git a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/models/QueueStorageException.java b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/models/QueueStorageException.java index 20853eca56d3..ffc5abdfe526 100644 --- a/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/models/QueueStorageException.java +++ b/sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/models/QueueStorageException.java @@ -7,7 +7,7 @@ import com.azure.core.http.HttpResponse; import com.azure.storage.common.implementation.StorageImplUtils; -import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE; +import static com.azure.storage.common.implementation.Constants.HeaderConstants.ERROR_CODE_HEADER_NAME; /** * A {@code StorageException} is thrown whenever Azure Storage successfully returns an error code that is not 200-level. @@ -39,7 +39,7 @@ public QueueStorageException(String message, HttpResponse response, Object value * @return The error code returned by the service. */ public QueueErrorCode getErrorCode() { - return QueueErrorCode.fromString(super.getResponse().getHeaders().getValue(ERROR_CODE)); + return QueueErrorCode.fromString(super.getResponse().getHeaders().getValue(ERROR_CODE_HEADER_NAME)); } /** diff --git a/sdk/storage/azure-storage-queue/src/test/java/com/azure/storage/queue/QueueErrorDeserializationTests.java b/sdk/storage/azure-storage-queue/src/test/java/com/azure/storage/queue/QueueErrorDeserializationTests.java new file mode 100644 index 000000000000..ed6439919de8 --- /dev/null +++ b/sdk/storage/azure-storage-queue/src/test/java/com/azure/storage/queue/QueueErrorDeserializationTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.queue; + +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.core.test.utils.MockTokenCredential; +import com.azure.storage.queue.models.QueueStorageException; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +import java.nio.charset.StandardCharsets; + +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * Tests cases where the service returns a response that would result in a {@link QueueStorageException} being thrown + * with a response body that needs to be deserialized. + */ +public class QueueErrorDeserializationTests { + @Test + public void errorResponseBody() { + String errorResponse = "ContainerAlreadyExists" + + "The specified container already exists."; + HttpPipeline httpPipeline = new HttpPipelineBuilder() + .httpClient(request -> Mono.just(new MockHttpResponse(request, 409, + new HttpHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/xml"), + errorResponse.getBytes(StandardCharsets.UTF_8)))) + .build(); + QueueClient fileClient = new QueueClientBuilder() + .endpoint("https://account.blob.core.windows.net/") + .queueName("queue") + .credential(new MockTokenCredential()) + .pipeline(httpPipeline) + .buildClient(); + + QueueStorageException exception = assertThrows(QueueStorageException.class, fileClient::create); + assertTrue(exception.getMessage().contains("The specified container already exists.")); + // assertEquals(BlobErrorCode.CONTAINER_ALREADY_EXISTS, exception.getErrorCode()); + } +} diff --git a/sdk/storage/azure-storage-queue/swagger/README.md b/sdk/storage/azure-storage-queue/swagger/README.md index 8b4f90b3c609..78a7a0cf3966 100644 --- a/sdk/storage/azure-storage-queue/swagger/README.md +++ b/sdk/storage/azure-storage-queue/swagger/README.md @@ -26,7 +26,7 @@ service-interface-as-public: true license-header: MICROSOFT_MIT_SMALL enable-sync-stack: true context-client-method-parameter: true -default-http-exception-type: com.azure.storage.queue.models.QueueStorageException +default-http-exception-type: com.azure.storage.queue.implementation.models.QueueStorageExceptionInternal models-subpackage: implementation.models custom-types: QueueErrorCode,QueueSignedIdentifier,SendMessageResult,QueueMessageItem,PeekedMessageItem,QueueItem,QueueServiceProperties,QueueServiceStatistics,QueueCorsRule,QueueAccessPolicy,QueueAnalyticsLogging,QueueMetrics,QueueRetentionPolicy,GeoReplicationStatus,GeoReplicationStatusType,GeoReplication custom-types-subpackage: models