mirror of https://github.com/apache/jclouds.git
Refine AzureBlob InvalidQueryParameterValue error
This commit is contained in:
parent
73c566a4c7
commit
44ec4b8763
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue