Table of Contents

Class HtmlErrorEvent

Namespace
AngleSharp.Html.Dom.Events
Assembly
AngleSharp.dll

The event that is published in case of an HTML parse error.

public class HtmlErrorEvent : Event
Inheritance
HtmlErrorEvent
Inherited Members
Extension Methods

Constructors

HtmlErrorEvent(HtmlParseError, TextPosition)

Creates a new HtmlParseErrorEvent event.

public HtmlErrorEvent(HtmlParseError code, TextPosition position)

Parameters

code HtmlParseError

The provided error code.

position TextPosition

The position in the source.

Properties

Code

Gets the provided error code.

public int Code { get; }

Property Value

int

Message

Gets the associated error message.

public string Message { get; }

Property Value

string

Position

Gets the position of the error.

public TextPosition Position { get; }

Property Value

TextPosition