org.jclouds.elasticstack.handlers
Class ElasticStackErrorHandler
java.lang.Object
org.jclouds.elasticstack.handlers.ElasticStackErrorHandler
- All Implemented Interfaces:
- org.jclouds.http.HttpErrorHandler
@Singleton
public class ElasticStackErrorHandler
- extends Object
- implements org.jclouds.http.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 org.jclouds.logging.Logger |
logger
|
| Fields inherited from interface org.jclouds.http.HttpErrorHandler |
NOOP |
|
Method Summary |
void |
handleError(org.jclouds.http.HttpCommand command,
org.jclouds.http.HttpResponse response)
|
String |
parseMessage(org.jclouds.http.HttpResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.jclouds.logging.Logger logger
ElasticStackErrorHandler
public ElasticStackErrorHandler()
handleError
public void handleError(org.jclouds.http.HttpCommand command,
org.jclouds.http.HttpResponse response)
- Specified by:
handleError in interface org.jclouds.http.HttpErrorHandler
parseMessage
public String parseMessage(org.jclouds.http.HttpResponse response)
Copyright © 2009-2013 jclouds. All Rights Reserved.