private void SetErrorState() { _parsingFunction = ParsingFunction.Error; _readState = ReadState.Error; }