web api interface
ErrorEvent
Available in workers
The ErrorEvent interface represents events providing information related to errors in scripts or in files.
Constructor
ErrorEvent()- : Creates an
ErrorEventevent with the given parameters.
- : Creates an
Instance properties
Also inherits properties from its parent Event.
messageRead only- : A string containing a human-readable error message describing the problem.
filenameRead only- : A string containing the name of the script file in which the error occurred.
linenoRead only- : An integer containing the line number of the script file on which the error occurred.
colnoRead only- : An integer containing the column number of the script file on which the error occurred.
errorRead only- : A JavaScript value, such as an
ErrororDOMException, representing the error associated with this event.
- : A JavaScript value, such as an
Instance methods
Inherits methods from its parent Event.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- Using web workers, most likely objects to raise such an event.
Window:erroreventNavigation:navigateerrorevent