> +import org.jclouds.Fallback;
> +import org.jclouds.atmos.AtmosResponseException;
> +import org.jclouds.http.HttpUtils;
> +
> +import com.google.common.util.concurrent.ListenableFuture;
> +
> +public final class TrueOn404FalseOnPathNotEmpty implements Fallback<Boolean>
> {
> + @Override
> + public ListenableFuture<Boolean> create(Throwable t) throws Exception {
> + return immediateFuture(createOrPropagate(t));
> + }
> +
> + @Override
> + public Boolean createOrPropagate(Throwable t) throws Exception {
> + AtmosResponseException exception = getFirstThrowableOfType(t,
> AtmosResponseException.class);
> + if (exception != null && exception.getError().getCode() == 1023) {
Added `AtmosErrorCode`.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/451/files#r15379519