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