Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/HtmlAgilityPack/HtmlParseError.cs')
-rw-r--r--docs/HtmlAgilityPack/HtmlParseError.cs92
1 files changed, 92 insertions, 0 deletions
diff --git a/docs/HtmlAgilityPack/HtmlParseError.cs b/docs/HtmlAgilityPack/HtmlParseError.cs
new file mode 100644
index 00000000000..d3d5e78ba19
--- /dev/null
+++ b/docs/HtmlAgilityPack/HtmlParseError.cs
@@ -0,0 +1,92 @@
+// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
+namespace HtmlAgilityPack
+{
+ /// <summary>
+ /// Represents a parsing error found during document parsing.
+ /// </summary>
+ public class HtmlParseError
+ {
+ #region Fields
+
+ private HtmlParseErrorCode _code;
+ private int _line;
+ private int _linePosition;
+ private string _reason;
+ private string _sourceText;
+ private int _streamPosition;
+
+ #endregion
+
+ #region Constructors
+
+ internal HtmlParseError(
+ HtmlParseErrorCode code,
+ int line,
+ int linePosition,
+ int streamPosition,
+ string sourceText,
+ string reason)
+ {
+ _code = code;
+ _line = line;
+ _linePosition = linePosition;
+ _streamPosition = streamPosition;
+ _sourceText = sourceText;
+ _reason = reason;
+ }
+
+ #endregion
+
+ #region Properties
+
+ /// <summary>
+ /// Gets the type of error.
+ /// </summary>
+ public HtmlParseErrorCode Code
+ {
+ get { return _code; }
+ }
+
+ /// <summary>
+ /// Gets the line number of this error in the document.
+ /// </summary>
+ public int Line
+ {
+ get { return _line; }
+ }
+
+ /// <summary>
+ /// Gets the column number of this error in the document.
+ /// </summary>
+ public int LinePosition
+ {
+ get { return _linePosition; }
+ }
+
+ /// <summary>
+ /// Gets a description for the error.
+ /// </summary>
+ public string Reason
+ {
+ get { return _reason; }
+ }
+
+ /// <summary>
+ /// Gets the the full text of the line containing the error.
+ /// </summary>
+ public string SourceText
+ {
+ get { return _sourceText; }
+ }
+
+ /// <summary>
+ /// Gets the absolute stream position of this error in the document, relative to the start of the document.
+ /// </summary>
+ public int StreamPosition
+ {
+ get { return _streamPosition; }
+ }
+
+ #endregion
+ }
+} \ No newline at end of file