2020-12-04 18:57:47 +00:00
|
|
|
package org.syndicate_lang.actors;
|
|
|
|
|
|
|
|
public class BrokenPromise extends RuntimeException {
|
2020-12-09 19:54:47 +00:00
|
|
|
private final Promise<?> _promise;
|
2020-12-04 18:57:47 +00:00
|
|
|
|
|
|
|
public BrokenPromise(Promise<?> promise) {
|
|
|
|
super(promise.getReason());
|
|
|
|
this._promise = promise;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Promise<?> getPromise() {
|
|
|
|
return _promise;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Throwable getReason() {
|
|
|
|
return _promise.getReason();
|
|
|
|
}
|
|
|
|
}
|