You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
HtmlAgilityPack
EncodingFoundException.cs
HtmlAttribute.cs
HtmlAttributeCollection.cs
HtmlCmdLine.cs
HtmlCommentNode.cs
HtmlConsoleListener.cs
HtmlDocument.cs
HtmlElementFlag.cs
HtmlEntity.cs
HtmlNameTable.cs
HtmlNode.cs
HtmlNodeCollection.cs
HtmlNodeNavigator.cs
HtmlNodeType.cs
HtmlParseError.cs
HtmlParseErrorCode.cs
HtmlTextNode.cs
HtmlWeb.cs
HtmlWebException.cs
IOLibrary.cs
LICENSE
MixedCodeDocument.cs
MixedCodeDocumentCodeFragment.cs
MixedCodeDocumentFragment.cs
MixedCodeDocumentFragmentList.cs
MixedCodeDocumentFragmentType.cs
MixedCodeDocumentTextFragment.cs
NameValuePair.cs
NameValuePairList.cs
crc32.cs
deploy
sources
svgs
Makefile.am
Makefile.in
README
TODO
abc-removal.txt
api-style.css
check-coverage
check-exports
convert.cs
docs.make
embedded-api
exdoc
file-share-modes
gc-issues
gc-variables-in-c
glossary.txt
ignore
internal-calls
ir-desc
jit-imt
jit-thoughts
jit-trampolines
mini-doc.txt
mono-api-metadata.html
mono-file-formats.config
mono-file-formats.source
mono-tools.config
mono-tools.source
monoapi.source
object-layout
precise-gc
produce-lists
remoting
ssapre.txt
stack-overflow.txt
threading
toc.xml
unmanaged-calls
eglib
external
ikvm-native
libgc
llvm
m4
man
mcs
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
92 lines
2.3 KiB
C#
92 lines
2.3 KiB
C#
![]() |
// 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
|
||
|
}
|
||
|
}
|