Constructor and Description |
---|
Fallbacks.VoidOnNotFoundOr404() |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
create(Throwable t) |
Void |
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<Void> create(Throwable t) throws Exception
public Void 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<Void>
t
- the exception that made the call fail.Exception
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.