org.jclouds.fallbacks
Class MapHttp4xxCodesToExceptions

java.lang.Object
  extended by org.jclouds.fallbacks.MapHttp4xxCodesToExceptions
All Implemented Interfaces:
com.google.common.util.concurrent.FutureFallback<Object>, Fallback<Object>

@Singleton
public final class MapHttp4xxCodesToExceptions
extends Object
implements Fallback<Object>

Author:
Adrian Cole

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Object> create(Throwable t)
           
 Object createOrPropagate(Throwable t)
          The exception is provided so that the Fallback implementation can conditionally determine whether to propagate the exception or to attempt to recover.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public com.google.common.util.concurrent.ListenableFuture<Object> create(Throwable t)
                                                                  throws Exception
Specified by:
create in interface com.google.common.util.concurrent.FutureFallback<Object>
Throws:
Exception

createOrPropagate

public Object createOrPropagate(Throwable t)
                         throws Exception
Description copied from interface: Fallback
The exception is provided so that the Fallback implementation can conditionally determine whether to propagate the exception or to attempt to recover.

Specified by:
createOrPropagate in interface Fallback<Object>
Parameters:
t - the exception that made the call fail.
Throws:
Exception


Copyright © 2009-2013 jclouds. All Rights Reserved.