ErrorEvent Class

https://html.spec.whatwg.org/multipage/webappapis.html#errorevent

public sealed class ErrorEvent : Event
Inheritance
Event ErrorEvent

Constructors

NameDescription
ErrorEvent(string, ErrorEventInit?)Creates an error event with the given type and initialization dictionary.

ErrorEvent(string, ErrorEventInit?)

HtmlEvents.cs

Creates an error event with the given type and initialization dictionary.

public ErrorEvent(string type, ErrorEventInit? eventInitDict = null)

Properties

NameDescription
ColnoGets the column number at which the error occurred.
ErrorGets the thrown value that caused the error.
FilenameGets the URL of the script in which the error occurred.
LinenoGets the line number at which the error occurred.
MessageGets the error message.

Gets the column number at which the error occurred.

public uint Colno { get; }

Gets the thrown value that caused the error.

public object? Error { get; }

Gets the URL of the script in which the error occurred.

public string Filename { get; }

Gets the line number at which the error occurred.

public uint Lineno { get; }

Gets the error message.

public string Message { get; }