org.jclouds.cloudsigma.handlers
Class CloudSigmaErrorHandler

java.lang.Object
  extended by org.jclouds.cloudsigma.handlers.CloudSigmaErrorHandler
All Implemented Interfaces:
HttpErrorHandler

@Singleton
public class CloudSigmaErrorHandler
extends Object
implements HttpErrorHandler

This will parse and set an appropriate exception on the command object.

Errors are returned with an appropriate HTTP status code, an X-Elastic- Error header specifying the error type, and a text description in the HTTP body.

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
CloudSigmaErrorHandler()
           
 
Method Summary
 void handleError(HttpCommand command, HttpResponse response)
           
 String parseMessage(HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
Constructor Detail

CloudSigmaErrorHandler

public CloudSigmaErrorHandler()
Method Detail

handleError

public void handleError(HttpCommand command,
                        HttpResponse response)
Specified by:
handleError in interface HttpErrorHandler

parseMessage

public String parseMessage(HttpResponse response)


Copyright © 2009-2011 jclouds. All Rights Reserved.