public static <T> T valOnNotFoundOr404(T val, Throwable t) { if (containsResourceNotFoundException(checkNotNull(t, "throwable")) || contains404(t)) return val; throw propagate(t); }
public static <T> T valOnNotFoundOr404(T val, Throwable t) { if (containsResourceNotFoundException(checkNotNull(t, "throwable")) || contains404(t)) return val; throw propagate(t); }
public Object createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) throw new ContainerNotFoundException(t); throw propagate(t); }
public Object createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) throw new KeyNotFoundException(t); throw propagate(t); } }
@Override public Queues createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return Queues.EMPTY; } throw propagate(t); } }
@Override public Ports createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return Ports.EMPTY; } throw propagate(t); } }
@Override public FloatingIPs createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return FloatingIPs.EMPTY; } throw propagate(t); } }
@Override public Networks createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return Networks.EMPTY; } throw propagate(t); } }
@Override public VIPs createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return VIPs.EMPTY; } throw propagate(t); } }
@Override public Boolean createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) return true; if (returnValueOnCodeOrNull(t, false, equalTo(409)) != null) return false; throw propagate(t); } }
public static <T> T valOnNotFoundOr404(T val, Throwable t) { if (containsResourceNotFoundException(checkNotNull(t, "throwable")) || contains404(t)) return val; throw propagate(t); }
public Object createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) throw new KeyNotFoundException(t); throw propagate(t); }
public Object createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) throw new ContainerNotFoundException(t); throw propagate(t); }
@Override public Boolean createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) return true; if (returnValueOnCodeOrNull(t, false, equalTo(409)) != null) return false; throw propagate(t); } }
@Override public Rules createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return Rules.EMPTY; } throw propagate(t); } }
@Override public Boolean createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) return true; if (returnValueOnCodeOrNull(t, false, equalTo(409)) != null) return false; throw propagate(t); } }
@Override public Boolean createOrPropagate(Throwable t) throws Exception { if (contains404(checkNotNull(t, "throwable"))) return true; if (returnValueOnCodeOrNull(t, false, equalTo(409)) != null) return false; throw propagate(t); } }
@Override public Pools createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return Pools.EMPTY; } throw propagate(t); } }
@Override public SecurityGroups createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return SecurityGroups.EMPTY; } throw propagate(t); } }
@Override public Routers createOrPropagate(Throwable t) throws Exception { if ((getFirstThrowableOfType(checkNotNull(t, "throwable"), ResourceNotFoundException.class) != null) || contains404(t)) { return Routers.EMPTY; } throw propagate(t); } }