public static final class Fallbacks.EmptyIterableWithMarkerOnNotFoundOr404 extends Object implements Fallback<IterableWithMarker<Object>>
Constructor and Description |
---|
Fallbacks.EmptyIterableWithMarkerOnNotFoundOr404() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<IterableWithMarker<Object>> |
create(Throwable t) |
IterableWithMarker<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. |
public Fallbacks.EmptyIterableWithMarkerOnNotFoundOr404()
public com.google.common.util.concurrent.ListenableFuture<IterableWithMarker<Object>> create(Throwable t) throws Exception
create
in interface com.google.common.util.concurrent.FutureFallback<IterableWithMarker<Object>>
Exception
public IterableWithMarker<Object> createOrPropagate(Throwable t) throws Exception
Fallback
Fallback
implementation can
conditionally determine whether to propagate the exception or to attempt
to recover.createOrPropagate
in interface Fallback<IterableWithMarker<Object>>
t
- the exception that made the call fail.Exception
Copyright © 2009-2013 jclouds. All Rights Reserved.