Skip to content

Commit

Permalink
Refine AzureBlob InvalidQueryParameterValue error
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul committed Nov 12, 2024
1 parent 73c566a commit 44ec4b8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ public void handleError(HttpCommand command, HttpResponse response) {
protected Exception refineException(HttpCommand command, HttpResponse response, Exception exception,
AzureStorageError error, String message) {
switch (response.getStatusCode()) {
case 400:
if (error.getCode().equals("InvalidQueryParameterValue")) {
exception = new IllegalArgumentException(message, exception);
}
break;
case 401:
exception = new AuthorizationException(message, exception);
break;
Expand Down

0 comments on commit 44ec4b8

Please sign in to comment.