APG.CodeHelper.ExceptionHandler.SQL2005ExceptionParser.CheckParsingSupersateParse C# (CSharp) Method

CheckParsingSupersateParse() private method

private CheckParsingSupersateParse ( ) : void
return void
        private void CheckParsingSupersateParse()
        {
            string[] actions = new string[3]{ "INSERT", "DELETE", "UPDATE" };
            string actionTemplate = "The {0} statement conflicted with the";
            string action;
            parsingState = ParsingState.UnParsedParsingState;

            for (int i = 0; i < actions.Length; i++)
            {
                action = string.Format(actionTemplate, actions[i]);
                if (messageToParse.IndexOf(action, 0) != -1)
                {
                    parsingState = ParsingState.ActionParsedState;
                    commandType = (SqlCommandType)i;
                    break;
                }
            }
        }