GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — ErrorEvent - Web APIs | MDN

ErrorEvent

Note: This feature is available in Web Workers.

The ErrorEvent interface represents events providing information related to errors in scripts or in files.

Constructor

ErrorEvent()

Creates an ErrorEvent event with the given parameters.

Instance properties

Also inherits properties from its parent Event.

ErrorEvent.message Read only

A string containing a human-readable error message describing the problem.

ErrorEvent.filename Read only

A string containing the name of the script file in which the error occurred.

ErrorEvent.lineno Read only

An integer containing the line number of the script file on which the error occurred.

ErrorEvent.colno Read only

An integer containing the column number of the script file on which the error occurred.

ErrorEvent.error Read only

A JavaScript value, such as an Error or DOMException, representing the error associated with this event.

Instance methods

Inherits methods from its parent Event.

Specifications

Specification
HTML
# errorevent

Browser compatibility

See also

  • Using web workers, most likely objects to raise such an event.
  • Window: error event
  • Navigation: navigateerror event

Help improve MDN

Learn how to contribute

This page was last modified on Oct 15, 2024 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.