More comprehensive exception message

This commit is contained in:
Trustin Lee 2009-05-21 11:52:17 +00:00
parent ad6888a635
commit 25eee122cb

View File

@ -517,7 +517,8 @@ public abstract class ReplayingDecoder<T extends Enum<T>>
private ChannelBuffer cumulation() {
ChannelBuffer cumulation = this.cumulation.get();
if (cumulation == null) {
throw new IllegalStateException("Should be called in decode() only");
throw new IllegalStateException(
"checkpoint() should be called in decode() only");
}
return cumulation;
}