Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 44ec4b8

Browse files
committed
Refine AzureBlob InvalidQueryParameterValue error
1 parent 73c566a commit 44ec4b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

providers/azureblob/src/main/java/org/jclouds/azure/storage/handlers/ParseAzureStorageErrorFromXmlContent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ public void handleError(HttpCommand command, HttpResponse response) {
9797
protected Exception refineException(HttpCommand command, HttpResponse response, Exception exception,
9898
AzureStorageError error, String message) {
9999
switch (response.getStatusCode()) {
100+
case 400:
101+
if (error.getCode().equals("InvalidQueryParameterValue")) {
102+
exception = new IllegalArgumentException(message, exception);
103+
}
104+
break;
100105
case 401:
101106
exception = new AuthorizationException(message, exception);
102107
break;

0 commit comments

Comments
 (0)