protected void OnParseError(ParseErrorEventArgs args) { if (ParseError != null) { ParseError(this, args); } if (IsParseErrorFatal) { //_readState = ReadState.Error; throw new XmlException(args.Message, null, args.LineNumber, args.LinePosition); } }
protected virtual void OnParseError(string message) { ParseErrorEventArgs args = new ParseErrorEventArgs(message, this as IXmlLineInfo); if (ParseError != null) { ParseError(this, args); } }
protected virtual void OnParseError(ParseErrorEventArgs args) { if (ParseError != null) { ParseError(this, args); } if (IsParseErrorFatal) { throw new XmlException(args.Message, null, args.LineNumber, args.LinePosition); } }
private void tokenizer_ParseError(object sender, ParseErrorEventArgs e) { OnParseError(e); }
void reader_ParseError(object sender, ParseErrorEventArgs e) { ParseErrors.Items.Add(e); }
private void htmlReader_ParseError(object source, ParseErrorEventArgs args) { if (parseErrors == 0) { Trace.WriteLine(""); Trace.WriteLine("Actual errors:"); } Trace.WriteLine(String.Format("{0},{1}: {2}", args.LineNumber, args.LinePosition, args.Message)); parseErrors++; }
private void reader_ParseError(object source, ParseErrorEventArgs args) { actualOutput.Add(args); }
protected void OnParseError(string message) { ParseErrorEventArgs args = new ParseErrorEventArgs(message, this); OnParseError(args); }
private void input_ParseError(object sender, ParseErrorEventArgs e) { OnParseError(e); }