Ejemplo n.º 1
0
 /**
  * Perform the given <code>action</code> callback if the promise encounters an exception.
  *
  * @param action The action to perform.
  * @param ec The ExecutionContext to execute the callback in.
  */
 public void onFailure(final Callback<Throwable> action, ExecutionContext ec) {
   FPromiseHelper.onFailure(this, action, ec);
 }
Ejemplo n.º 2
0
 /**
  * Perform the given <code>action</code> callback if the promise encounters an exception.
  *
  * <p>This action will be run in the default exceution context.
  *
  * @param action The action to perform.
  */
 public void onFailure(final Callback<Throwable> action) {
   FPromiseHelper.onFailure(this, action, HttpExecution.defaultContext());
 }