private M invalidMessage ( Exception cause ) { state = State . BAD_MESSAGE ; M message = buildInvalidMessage ( ) ; message . setDecoderResult ( DecoderResult . failure ( cause ) ) ; return message ; }
Helper method to create a message indicating a invalid decoding result .