Add stacktrace to the IllegalStateException which is thrown if a Promise was notified before

This commit is contained in:
Norman Maurer 2013-03-08 15:11:29 +01:00
parent fd3f923b52
commit 8d7f1e2820

View File

@ -357,7 +357,7 @@ public class DefaultPromise implements Promise {
notifyListeners();
return this;
}
throw new IllegalStateException();
throw new IllegalStateException("Promise was completed before");
}
@Override
@ -375,7 +375,7 @@ public class DefaultPromise implements Promise {
notifyListeners();
return this;
}
throw new IllegalStateException();
throw new IllegalStateException("Promise was completed before", cause);
}
@Override