Interface for a promise that can be rejected. More...
Public Member Functions | |
| abstract boolean | castAndResolve (Object result) |
| Casts the result and resolves the promise. More... | |
| abstract boolean | reject (java.lang.Exception exception) |
| Rejects the promise. More... | |
Interface for a promise that can be rejected.
|
abstract |
Casts the result and resolves the promise.
Will throw an exception if the cast fails.
| result | The result. |
Implemented in fm.liveswitch.PromiseBase< T >.
|
abstract |
Rejects the promise.
| exception | The exception. |
Implemented in fm.liveswitch.PromiseBase< T >.