Traceable exception message
This commit is contained in:
parent
cc13dba498
commit
307c00e073
@ -435,8 +435,9 @@ public abstract class ReplayingDecoder<T extends Enum<T>>
|
|||||||
|
|
||||||
if (oldReaderIndex == cumulation.readerIndex() && oldState == state) {
|
if (oldReaderIndex == cumulation.readerIndex() && oldState == state) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
"decode() method must consume at least one byte "
|
"decode() method must consume at least one byte " +
|
||||||
+ "if it returned a decoded message.");
|
"if it returned a decoded message (caused by: " +
|
||||||
|
getClass() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
// A successful decode
|
// A successful decode
|
||||||
|
Loading…
Reference in New Issue
Block a user