ErrorEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1516
The ErrorEvent interface represents events providing information related to errors in scripts or in files.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ErrorEvent(
type,init?):ErrorEvent
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1517
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ErrorEvent
Overrides
Section titled “Overrides”Properties
Section titled “Properties”bubbles
Section titled “bubbles”
readonlybubbles:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:763
The bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
Inherited from
Section titled “Inherited from”cancelable
Section titled “cancelable”
readonlycancelable:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:769
The cancelable read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
Inherited from
Section titled “Inherited from”cancelBubble
Section titled “cancelBubble”cancelBubble:
boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:820
The cancelBubble property of the Event interface is deprecated.
Inherited from
Section titled “Inherited from”composed
Section titled “composed”
readonlycomposed:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:757
The read-only composed property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
Inherited from
Section titled “Inherited from”currentTarget?
Section titled “currentTarget?”
readonlyoptionalcurrentTarget:EventTarget<Record<string,Event>>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:788
The currentTarget read-only property of the Event interface identifies the element to which the event handler has been attached.
Inherited from
Section titled “Inherited from”defaultPrevented
Section titled “defaultPrevented”
readonlydefaultPrevented:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:775
The defaultPrevented read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
Inherited from
Section titled “Inherited from”eventPhase
Section titled “eventPhase”
readonlyeventPhase:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:751
The eventPhase read-only property of the being evaluated.
Inherited from
Section titled “Inherited from”isTrusted
Section titled “isTrusted”
readonlyisTrusted:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:813
The isTrusted read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via The only exception is the click event, which initializes the isTrusted property to false in user agents.
Inherited from
Section titled “Inherited from”returnValue
Section titled “returnValue”
readonlyreturnValue:boolean
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:782
The Event property returnValue indicates whether the default action for this event has been prevented or not.
Inherited from
Section titled “Inherited from”srcElement
Section titled “srcElement”
readonlysrcElement:null|EventTarget<Record<string,Event>>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:801
The deprecated Event.srcElement is an alias for the Event.target property.
Inherited from
Section titled “Inherited from”target?
Section titled “target?”
readonlyoptionaltarget:EventTarget<Record<string,Event>>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:794
The read-only target property of the dispatched.
Inherited from
Section titled “Inherited from”timeStamp
Section titled “timeStamp”
readonlytimeStamp:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:807
The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
Inherited from
Section titled “Inherited from”
readonlytype:string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:745
The type read-only property of the Event interface returns a string containing the event’s type.
Inherited from
Section titled “Inherited from”AT_TARGET
Section titled “AT_TARGET”
readonlystaticAT_TARGET:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:847
Inherited from
Section titled “Inherited from”BUBBLING_PHASE
Section titled “BUBBLING_PHASE”
readonlystaticBUBBLING_PHASE:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:848
Inherited from
Section titled “Inherited from”CAPTURING_PHASE
Section titled “CAPTURING_PHASE”
readonlystaticCAPTURING_PHASE:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:846
Inherited from
Section titled “Inherited from”
readonlystaticNONE:number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:845
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get colno():
number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1541
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.
Returns
Section titled “Returns”number
Get Signature
Section titled “Get Signature”get error():
any
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1547
The error read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
Returns
Section titled “Returns”any
filename
Section titled “filename”Get Signature
Section titled “Get Signature”get filename():
string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1523
The filename read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
Returns
Section titled “Returns”string
lineno
Section titled “lineno”Get Signature
Section titled “Get Signature”get lineno():
number
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1535
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.
Returns
Section titled “Returns”number
message
Section titled “message”Get Signature
Section titled “Get Signature”get message():
string
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1529
The message read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
Returns
Section titled “Returns”string
Methods
Section titled “Methods”composedPath()
Section titled “composedPath()”composedPath():
EventTarget<Record<string,Event>>[]
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:844
The composedPath() method of the Event interface returns the event’s path which is an array of the objects on which listeners will be invoked.
Returns
Section titled “Returns”EventTarget<Record<string, Event>>[]
Inherited from
Section titled “Inherited from”preventDefault()
Section titled “preventDefault()”preventDefault():
void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:832
The preventDefault() method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”stopImmediatePropagation()
Section titled “stopImmediatePropagation()”stopImmediatePropagation():
void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:826
The stopImmediatePropagation() method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Event.stopImmediatePropagation
stopPropagation()
Section titled “stopPropagation()”stopPropagation():
void
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:838
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
Returns
Section titled “Returns”void