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
FieldsModifier and TypeFieldDescriptionprotected org.jclouds.logging.Loggerprotected final OverLimitParserprotected final org.jclouds.fallbacks.HeaderToRetryAfterExceptionFields inherited from interface org.jclouds.http.HttpErrorHandler
NOOP -
Constructor Summary
ConstructorsModifierConstructorDescriptionNovaErrorHandler(org.jclouds.date.DateCodecFactory factory, OverLimitParser overLimitParser) in current format, retryAt has a value of2012-11-14T21:51:28UTC, which is an ISO-8601 seconds (not milliseconds) format.protectedNovaErrorHandler(org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser, OverLimitParser overLimitParser) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(org.jclouds.http.HttpCommand command, org.jclouds.http.HttpResponse response)
-
Field Details
-
logger
protected org.jclouds.logging.Logger logger -
retryAfterParser
protected final org.jclouds.fallbacks.HeaderToRetryAfterException retryAfterParser -
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 of2012-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:
handleErrorin interfaceorg.jclouds.http.HttpErrorHandler
-