Class ElasticStackErrorHandler
- java.lang.Object
-
- org.jclouds.elasticstack.handlers.ElasticStackErrorHandler
-
- All Implemented Interfaces:
HttpErrorHandler
@Singleton public class ElasticStackErrorHandler 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
logger
-
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
-
-
Constructor Summary
Constructors Constructor Description ElasticStackErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleError(HttpCommand command, HttpResponse response)
String
parseMessage(HttpResponse response)
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Method Detail
-
handleError
public void handleError(HttpCommand command, HttpResponse response)
- Specified by:
handleError
in interfaceHttpErrorHandler
-
parseMessage
public String parseMessage(HttpResponse response)
-
-