Refine AzureBlob InvalidQueryParameterValue error

This commit is contained in:
Andrew Gaul 2024-11-11 22:26:08 -08:00
parent 73c566a4c7
commit 44ec4b8763
1 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,11 @@ public class ParseAzureStorageErrorFromXmlContent implements HttpErrorHandler {
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;