> @@ -35,4 +35,15 @@ public Boolean createOrPropagate(Throwable t) throws
> Exception {
> throw propagate(t);
> }
> }
> +
> + public static final class NullOnKeyNonFoundAnd404 implements
> Fallback<Object> {
> + public Object createOrPropagate(Throwable t) throws Exception {
> + if (checkNotNull(t, "throwable") != null &&
> + t.getMessage().contains("Could not find key") &&
> + returnValueOnCodeOrNull(t, true, equalTo(404)) != null) {
Use `HttpUtils.contains404(t)`
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/234/files#r52901471