Traceable exception message

This commit is contained in:
Trustin Lee 2009-06-30 09:52:47 +00:00
parent cc13dba498
commit 307c00e073

View File

@ -435,8 +435,9 @@ public abstract class ReplayingDecoder<T extends Enum<T>>
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