Traceable exception message

This commit is contained in:
Trustin Lee 2009-06-30 09:52:00 +00:00
parent 9ef9b3753e
commit cc13dba498

View File

@ -260,7 +260,7 @@ public abstract class FrameDecoder extends SimpleChannelUpstreamHandler {
} else if (oldReaderIndex == cumulation.readerIndex()) {
throw new IllegalStateException(
"decode() method must read at least one byte " +
"if it returned a frame.");
"if it returned a frame (caused by: " + getClass() + ")");
}
unfoldAndFireMessageReceived(context, remoteAddress, frame);