> +import static org.jclouds.util.Throwables2.getFirstThrowableOfType;
> +
> +public class EmptyQueuesFallback implements Fallback<Queues> {
> +
> +   public ListenableFuture<Queues> create(Throwable t) throws Exception {
> +      return immediateFuture(createOrPropagate(t));
> +   }
> +
> +   public Queues createOrPropagate(Throwable t) throws Exception {
> +
> +      return valOnNotFoundOr404(Queues.EMPTY,
> +            checkNotNull(t, "throwable"));
> +   }
> +
> +   public static Queues valOnNotFoundOr404(Queues val, Throwable t) {
> +      if (containsResourceNotFoundException(checkNotNull(t, "throwable")) || 
> contains404(t)) {

Is this called from places other than `createOrPropagate` above?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/96/files#r13473664

Reply via email to