Skip to main content

Class: NablaConnectErrorEvent

The error event of a client. The error is on detail.

Extends​

Constructors​

Constructor​

new NablaConnectErrorEvent(error): NablaConnectErrorEvent

Parameters​

error​

NablaConnectError

The error to report.

Returns​

NablaConnectErrorEvent

Overrides​

CustomEvent<NablaConnectError>.constructor

Properties​

AT_TARGET​

readonly AT_TARGET: 2

Inherited from​

CustomEvent.AT_TARGET


bubbles​

readonly bubbles: boolean

The bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.

MDN Reference

Inherited from​

CustomEvent.bubbles


BUBBLING_PHASE​

readonly BUBBLING_PHASE: 3

Inherited from​

CustomEvent.BUBBLING_PHASE


cancelable​

readonly cancelable: boolean

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.

MDN Reference

Inherited from​

CustomEvent.cancelable


cancelBubble​

cancelBubble: boolean

The cancelBubble property of the Event interface is deprecated.

Deprecated​

MDN Reference

Inherited from​

CustomEvent.cancelBubble


CAPTURING_PHASE​

readonly CAPTURING_PHASE: 1

Inherited from​

CustomEvent.CAPTURING_PHASE


composed​

readonly composed: boolean

The read-only composed property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.

MDN Reference

Inherited from​

CustomEvent.composed


currentTarget​

readonly currentTarget: EventTarget | null

The currentTarget read-only property of the Event interface identifies the element to which the event handler has been attached.

MDN Reference

Inherited from​

CustomEvent.currentTarget


defaultPrevented​

readonly defaultPrevented: boolean

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.

MDN Reference

Inherited from​

CustomEvent.defaultPrevented


detail​

readonly detail: NablaConnectError

The read-only detail property of the CustomEvent interface returns any data passed when initializing the event.

MDN Reference

Inherited from​

CustomEvent.detail


eventPhase​

readonly eventPhase: number

The eventPhase read-only property of the being evaluated.

MDN Reference

Inherited from​

CustomEvent.eventPhase


isTrusted​

readonly isTrusted: boolean

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.

MDN Reference

Inherited from​

CustomEvent.isTrusted


NONE​

readonly NONE: 0

Inherited from​

CustomEvent.NONE


returnValue​

returnValue: boolean

The Event property returnValue indicates whether the default action for this event has been prevented or not.

Deprecated​

MDN Reference

Inherited from​

CustomEvent.returnValue


srcElement​

readonly srcElement: EventTarget | null

The deprecated Event.srcElement is an alias for the Event.target property.

Deprecated​

MDN Reference

Inherited from​

CustomEvent.srcElement


target​

readonly target: EventTarget | null

The read-only target property of the dispatched.

MDN Reference

Inherited from​

CustomEvent.target


timeStamp​

readonly timeStamp: number

The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.

MDN Reference

Inherited from​

CustomEvent.timeStamp


type​

readonly type: string

The type read-only property of the Event interface returns a string containing the event's type.

MDN Reference

Inherited from​

CustomEvent.type

Methods​

composedPath()​

composedPath(): EventTarget[]

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.

MDN Reference

Returns​

EventTarget[]

Inherited from​

CustomEvent.composedPath


initCustomEvent()​

initCustomEvent(type, bubbles?, cancelable?, detail?): void

The CustomEvent.initCustomEvent() method initializes a CustomEvent object.

Parameters​

type​

string

bubbles?​

boolean

cancelable?​

boolean

detail?​

NablaConnectError

Returns​

void

Deprecated​

MDN Reference

Inherited from​

CustomEvent.initCustomEvent


initEvent()​

initEvent(type, bubbles?, cancelable?): void

The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().

Parameters​

type​

string

bubbles?​

boolean

cancelable?​

boolean

Returns​

void

Deprecated​

MDN Reference

Inherited from​

CustomEvent.initEvent


preventDefault()​

preventDefault(): void

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.

MDN Reference

Returns​

void

Inherited from​

CustomEvent.preventDefault


stopImmediatePropagation()​

stopImmediatePropagation(): void

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.

MDN Reference

Returns​

void

Inherited from​

CustomEvent.stopImmediatePropagation


stopPropagation()​

stopPropagation(): void

The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.

MDN Reference

Returns​

void

Inherited from​

CustomEvent.stopPropagation