Wouldn't it be better to throw a DecoderException here ?