org.jclouds.openstack.nova.v2_0.handlers
Class NovaErrorHandler

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler
All Implemented Interfaces:
org.jclouds.http.HttpErrorHandler

@Singleton
public class NovaErrorHandler
extends Object
implements org.jclouds.http.HttpErrorHandler

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


Field Summary
protected  org.jclouds.logging.Logger logger
           
protected  OverLimitParser overLimitParser
           
protected  org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser
           
 
Fields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP
 
Constructor Summary
  NovaErrorHandler(org.jclouds.date.DateCodecFactory factory, OverLimitParser overLimitParser)
          in current format, retryAt has a value of 2012-11-14T21:51:28UTC, which is an ISO-8601 seconds (not milliseconds) format.
protected NovaErrorHandler(org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser, OverLimitParser overLimitParser)
           
 
Method Summary
 void handleError(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.jclouds.logging.Logger logger

retryAfterParser

protected final org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser

overLimitParser

protected final OverLimitParser overLimitParser
Constructor Detail

NovaErrorHandler

protected NovaErrorHandler(org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser,
                           OverLimitParser overLimitParser)

NovaErrorHandler

@Inject
public NovaErrorHandler(org.jclouds.date.DateCodecFactory factory,
                               OverLimitParser overLimitParser)
in current format, retryAt has a value of 2012-11-14T21:51:28UTC, which is an ISO-8601 seconds (not milliseconds) format.

Method Detail

handleError

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


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.