Class ErrorEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The ErrorEvent interface represents events providing information related to errors in scripts or in files.
[Value("ErrorEvent")]
public class ErrorEvent : Event
- Inheritance
-
ErrorEvent
- Inherited Members
Remarks
-Using web workers, most likely objects to raise such an event.
-Window: Windowerror event
-Navigation: Navigationnavigateerror event
Constructors
ErrorEvent()
public ErrorEvent()
ErrorEvent(string, ErrorEventInit)
The ErrorEvent() constructor creates a new ErrorEvent object.
public ErrorEvent(string type, ErrorEventInit eventInitDict = null)
Parameters
typestringeventInitDictErrorEventInit
Remarks
Properties
Colno
The colno read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
[Value("colno")]
public ulong Colno { get; }
Property Value
- ulong
An integer.
Remarks
Error
The error read-only property of the ErrorEvent interface returns a JavaScript value, such as an {{jsxref("Error")}} or DOMException, representing the error associated with this event.
[Value("error")]
public dynamic Error { get; }
Property Value
- dynamic
Any valid JavaScript value.
Remarks
Filename
The filename read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
[Value("filename")]
public string Filename { get; }
Property Value
- string
A string.
Remarks
Lineno
The lineno read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
[Value("lineno")]
public ulong Lineno { get; }
Property Value
- ulong
An integer.
Remarks
Message
The message read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
[Value("message")]
public string Message { get; }
Property Value
- string
A string.