Skip to content
SiteEmail

ErrorEvent

Module: JavaScript DOM API

#include <ErrorEvent.idl>

Inherits from Event

Name
ErrorEventErrorEvent(DOMInternedString type, optional ErrorEventInit eventInitDict)
Name
readonly attribute DOMStringmessage
readonly attribute DOMStringfilename
readonly attribute unsigned longlineno
readonly attribute unsigned longcolno
readonly attribute anyerror

Public Functions inherited from Event

Name
EventEvent(DOMInternedString type, optional EventInit initEvent)
voidstopPropagation()
voidpreventDefault()
voidinitEvent(optional DOMInternedString eventTypeArg, optional boolean canBubbleArg, optional boolean cancelableArg)
voidstopImmediatePropagation()

Public Attributes inherited from Event

Name
const unsigned shortNONE
const unsigned shortCAPTURING_PHASE
const unsigned shortAT_TARGET
const unsigned shortBUBBLING_PHASE
readonly attribute DOMStringtype
readonly attribute EventTargettarget
readonly attribute EventTargetcurrentTarget
readonly attribute unsigned shorteventPhase
readonly attribute booleanbubbles
readonly attribute booleancancelable
readonly attribute booleandefaultPrevented
readonly attribute booleancomposed
ErrorEvent ErrorEvent(
DOMInternedString type,
optional ErrorEventInit eventInitDict
)
readonly attribute DOMString message;
readonly attribute DOMString filename;
readonly attribute unsigned long lineno;
readonly attribute unsigned long colno;
readonly attribute any error;