1 // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
\r
2 namespace HtmlAgilityPack
\r
5 /// Represents a parsing error found during document parsing.
\r
7 public class HtmlParseError
\r
11 private HtmlParseErrorCode _code;
\r
13 private int _linePosition;
\r
14 private string _reason;
\r
15 private string _sourceText;
\r
16 private int _streamPosition;
\r
20 #region Constructors
\r
22 internal HtmlParseError(
\r
23 HtmlParseErrorCode code,
\r
32 _linePosition = linePosition;
\r
33 _streamPosition = streamPosition;
\r
34 _sourceText = sourceText;
\r
43 /// Gets the type of error.
\r
45 public HtmlParseErrorCode Code
\r
47 get { return _code; }
\r
51 /// Gets the line number of this error in the document.
\r
55 get { return _line; }
\r
59 /// Gets the column number of this error in the document.
\r
61 public int LinePosition
\r
63 get { return _linePosition; }
\r
67 /// Gets a description for the error.
\r
69 public string Reason
\r
71 get { return _reason; }
\r
75 /// Gets the the full text of the line containing the error.
\r
77 public string SourceText
\r
79 get { return _sourceText; }
\r
83 /// Gets the absolute stream position of this error in the document, relative to the start of the document.
\r
85 public int StreamPosition
\r
87 get { return _streamPosition; }
\r