public static final class Fallbacks.EmptyListOnNotFoundOr404 extends Object implements Fallback<com.google.common.collect.ImmutableList<Object>>
Constructor and Description |
---|
Fallbacks.EmptyListOnNotFoundOr404() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.ImmutableList<Object>> |
create(Throwable t) |
com.google.common.collect.ImmutableList<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 com.google.common.util.concurrent.ListenableFuture<com.google.common.collect.ImmutableList<Object>> create(Throwable t) throws Exception
public com.google.common.collect.ImmutableList<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<com.google.common.collect.ImmutableList<Object>>
t
- the exception that made the call fail.Exception
Copyright © 2009-2013 jclouds. All Rights Reserved.