Class ParseAzureStorageErrorFromXmlContent
- java.lang.Object
-
- org.jclouds.azure.storage.handlers.ParseAzureStorageErrorFromXmlContent
-
- All Implemented Interfaces:
HttpErrorHandler
- Direct Known Subclasses:
ParseAzureBlobErrorFromXmlContent
public class ParseAzureStorageErrorFromXmlContent extends Object implements HttpErrorHandler
This will parse and set an appropriate exception on the command object.- See Also:
AzureStorageError
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
CONTAINER_KEY_PATH
static Pattern
CONTAINER_PATH
protected Logger
logger
-
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
-
-
Constructor Summary
Constructors Constructor Description ParseAzureStorageErrorFromXmlContent(AzureStorageUtils utils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleError(HttpCommand command, HttpResponse response)
protected Exception
refineException(HttpCommand command, HttpResponse response, Exception exception, AzureStorageError error, String message)
-
-
-
Constructor Detail
-
ParseAzureStorageErrorFromXmlContent
@Inject public ParseAzureStorageErrorFromXmlContent(AzureStorageUtils utils)
-
-
Method Detail
-
handleError
public void handleError(HttpCommand command, HttpResponse response)
- Specified by:
handleError
in interfaceHttpErrorHandler
-
refineException
protected Exception refineException(HttpCommand command, HttpResponse response, Exception exception, AzureStorageError error, String message)
-
-