private MemcacheContent invalidChunk ( Exception cause ) { state = State . BAD_MESSAGE ; MemcacheContent chunk = new DefaultLastMemcacheContent ( Unpooled . EMPTY_BUFFER ) ; chunk . setDecoderResult ( DecoderResult . failure ( cause ) ) ; return chunk ; }
Helper method to create a content chunk indicating a invalid decoding result .