From 8d7f1e282037ae13228e9a19dd22be9445fea6dd Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 8 Mar 2013 15:11:29 +0100 Subject: [PATCH] Add stacktrace to the IllegalStateException which is thrown if a Promise was notified before --- .../main/java/io/netty/util/concurrent/DefaultPromise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java b/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java index d7435e8e05..b8e089dc21 100644 --- a/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java +++ b/common/src/main/java/io/netty/util/concurrent/DefaultPromise.java @@ -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