Class NovaErrorHandler

java.lang.Object
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

    Fields
    Modifier and Type
    Field
    Description
    protected org.jclouds.logging.Logger
     
    protected final OverLimitParser
     
    protected final org.jclouds.fallbacks.HeaderToRetryAfterException
     

    Fields inherited from interface org.jclouds.http.HttpErrorHandler

    NOOP
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    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

    Modifier and Type
    Method
    Description
    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 Details

    • logger

      protected org.jclouds.logging.Logger logger
    • retryAfterParser

      protected final org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser
    • overLimitParser

      protected final OverLimitParser overLimitParser
  • Constructor Details

    • 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 Details

    • handleError

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