Table of Contents

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 int

The provided error code.

message string

The associated error message.

position TextPosition

The position in the source.

Properties

Code

Gets the provided error code.

public int Code { get; }

Property Value

int

Position

Gets the position of the error.

public TextPosition Position { get; }

Property Value

TextPosition