From 307c00e0739bf56bf3779b85440fae45fb3b1f15 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 30 Jun 2009 09:52:47 +0000 Subject: [PATCH] Traceable exception message --- .../jboss/netty/handler/codec/replay/ReplayingDecoder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java b/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java index dac1228b40..a8dc25fa56 100644 --- a/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/replay/ReplayingDecoder.java @@ -435,8 +435,9 @@ public abstract class ReplayingDecoder> if (oldReaderIndex == cumulation.readerIndex() && oldState == state) { throw new IllegalStateException( - "decode() method must consume at least one byte " - + "if it returned a decoded message."); + "decode() method must consume at least one byte " + + "if it returned a decoded message (caused by: " + + getClass() + ")"); } // A successful decode