Class HtmlParseException
- Namespace
- AngleSharp.Html.Parser
- Assembly
- AngleSharp.dll
Exception that is thrown if an ill-formatted HTML document is parsed in strict mode.
public class HtmlParseException : Exception, ISerializable
- Inheritance
-
HtmlParseException
- Implements
- Inherited Members
- Extension Methods
Constructors
HtmlParseException(int, string, TextPosition)
Creates a new HtmlParseException.
public HtmlParseException(int code, string message, TextPosition position)
Parameters
code
intThe provided error code.
message
stringThe associated error message.
position
TextPositionThe position in the source.
Properties
Code
Gets the provided error code.
public int Code { get; }
Property Value
Position
Gets the position of the error.
public TextPosition Position { get; }