io.machinecode.then.api.OnReject Maven / Gradle / Ivy
package io.machinecode.then.api;
/**
* Listener for a {@link Deferred} entering a {@link Deferred#REJECTED} state.
*
* @see Deferred
* @author Brent Douglas
* @since 1.0
*/
public interface OnReject {
/**
* @param fail The exception thrown by the computation represented by this promise.
*/
void reject(final F fail);
}