public abstract static class PromisedReply.FailureListener<U>
extends java.lang.Object
| Constructor and Description |
|---|
FailureListener() |
| Modifier and Type | Method and Description |
|---|---|
abstract <E extends java.lang.Exception> |
onFailure(E err)
Callback to execute when the promise is rejected.
|
public abstract <E extends java.lang.Exception> PromisedReply<U> onFailure(E err) throws java.lang.Exception
err - Exception which caused promise to fail.java.lang.Exception - thrown if handler want to call the next failure handler in chain.