# Class: NablaConnectErrorEvent

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

## Extends[​](#extends "Direct link to Extends")

* `CustomEvent`<[`NablaConnectError`](/connect/sdk/reference/classes/NablaConnectError.md)>

## Constructors[​](#constructors "Direct link to Constructors")

### Constructor[​](#constructor "Direct link to Constructor")

> **new NablaConnectErrorEvent**(`error`): `NablaConnectErrorEvent`

#### Parameters[​](#parameters "Direct link to Parameters")

##### error[​](#error "Direct link to error")

[`NablaConnectError`](/connect/sdk/reference/classes/NablaConnectError.md)

The error to report.

#### Returns[​](#returns "Direct link to Returns")

`NablaConnectErrorEvent`

#### Overrides[​](#overrides "Direct link to Overrides")

`CustomEvent<NablaConnectError>.constructor`

## Properties[​](#properties "Direct link to Properties")

### AT\_TARGET[​](#at_target "Direct link to AT_TARGET")

> `readonly` **AT\_TARGET**: `2`

#### Inherited from[​](#inherited-from "Direct link to Inherited from")

`CustomEvent.AT_TARGET`

***

### bubbles[​](#bubbles "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/bubbles)

#### Inherited from[​](#inherited-from-1 "Direct link to Inherited from")

`CustomEvent.bubbles`

***

### BUBBLING\_PHASE[​](#bubbling_phase "Direct link to BUBBLING_PHASE")

> `readonly` **BUBBLING\_PHASE**: `3`

#### Inherited from[​](#inherited-from-2 "Direct link to Inherited from")

`CustomEvent.BUBBLING_PHASE`

***

### cancelable[​](#cancelable "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/cancelable)

#### Inherited from[​](#inherited-from-3 "Direct link to Inherited from")

`CustomEvent.cancelable`

***

### ~~cancelBubble~~[​](#cancelbubble "Direct link to cancelbubble")

> **cancelBubble**: `boolean`

The **`cancelBubble`** property of the Event interface is deprecated.

#### Deprecated[​](#deprecated "Direct link to Deprecated")

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)

#### Inherited from[​](#inherited-from-4 "Direct link to Inherited from")

`CustomEvent.cancelBubble`

***

### CAPTURING\_PHASE[​](#capturing_phase "Direct link to CAPTURING_PHASE")

> `readonly` **CAPTURING\_PHASE**: `1`

#### Inherited from[​](#inherited-from-5 "Direct link to Inherited from")

`CustomEvent.CAPTURING_PHASE`

***

### composed[​](#composed "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/composed)

#### Inherited from[​](#inherited-from-6 "Direct link to Inherited from")

`CustomEvent.composed`

***

### currentTarget[​](#currenttarget "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)

#### Inherited from[​](#inherited-from-7 "Direct link to Inherited from")

`CustomEvent.currentTarget`

***

### defaultPrevented[​](#defaultprevented "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)

#### Inherited from[​](#inherited-from-8 "Direct link to Inherited from")

`CustomEvent.defaultPrevented`

***

### detail[​](#detail "Direct link to detail")

> `readonly` **detail**: [`NablaConnectError`](/connect/sdk/reference/classes/NablaConnectError.md)

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

[MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)

#### Inherited from[​](#inherited-from-9 "Direct link to Inherited from")

`CustomEvent.detail`

***

### eventPhase[​](#eventphase "Direct link to eventPhase")

> `readonly` **eventPhase**: `number`

The **`eventPhase`** read-only property of the being evaluated.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)

#### Inherited from[​](#inherited-from-10 "Direct link to Inherited from")

`CustomEvent.eventPhase`

***

### isTrusted[​](#istrusted "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)

#### Inherited from[​](#inherited-from-11 "Direct link to Inherited from")

`CustomEvent.isTrusted`

***

### NONE[​](#none "Direct link to NONE")

> `readonly` **NONE**: `0`

#### Inherited from[​](#inherited-from-12 "Direct link to Inherited from")

`CustomEvent.NONE`

***

### ~~returnValue~~[​](#returnvalue "Direct link to returnvalue")

> **returnValue**: `boolean`

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

#### Deprecated[​](#deprecated-1 "Direct link to Deprecated")

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)

#### Inherited from[​](#inherited-from-13 "Direct link to Inherited from")

`CustomEvent.returnValue`

***

### ~~srcElement~~[​](#srcelement "Direct link to srcelement")

> `readonly` **srcElement**: `EventTarget` | `null`

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

#### Deprecated[​](#deprecated-2 "Direct link to Deprecated")

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)

#### Inherited from[​](#inherited-from-14 "Direct link to Inherited from")

`CustomEvent.srcElement`

***

### target[​](#target "Direct link to target")

> `readonly` **target**: `EventTarget` | `null`

The read-only **`target`** property of the dispatched.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)

#### Inherited from[​](#inherited-from-15 "Direct link to Inherited from")

`CustomEvent.target`

***

### timeStamp[​](#timestamp "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)

#### Inherited from[​](#inherited-from-16 "Direct link to Inherited from")

`CustomEvent.timeStamp`

***

### type[​](#type "Direct link to type")

> `readonly` **type**: `string`

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

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)

#### Inherited from[​](#inherited-from-17 "Direct link to Inherited from")

`CustomEvent.type`

## Methods[​](#methods "Direct link to Methods")

### composedPath()[​](#composedpath "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/composedPath)

#### Returns[​](#returns-1 "Direct link to Returns")

`EventTarget`\[]

#### Inherited from[​](#inherited-from-18 "Direct link to Inherited from")

`CustomEvent.composedPath`

***

### ~~initCustomEvent()~~[​](#initcustomevent "Direct link to initcustomevent")

> **initCustomEvent**(`type`, `bubbles?`, `cancelable?`, `detail?`): `void`

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

#### Parameters[​](#parameters-1 "Direct link to Parameters")

##### type[​](#type-1 "Direct link to type")

`string`

##### bubbles?[​](#bubbles-1 "Direct link to bubbles?")

`boolean`

##### cancelable?[​](#cancelable-1 "Direct link to cancelable?")

`boolean`

##### detail?[​](#detail-1 "Direct link to detail?")

[`NablaConnectError`](/connect/sdk/reference/classes/NablaConnectError.md)

#### Returns[​](#returns-2 "Direct link to Returns")

`void`

#### Deprecated[​](#deprecated-3 "Direct link to Deprecated")

[MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)

#### Inherited from[​](#inherited-from-19 "Direct link to Inherited from")

`CustomEvent.initCustomEvent`

***

### ~~initEvent()~~[​](#initevent "Direct link to initevent")

> **initEvent**(`type`, `bubbles?`, `cancelable?`): `void`

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

#### Parameters[​](#parameters-2 "Direct link to Parameters")

##### type[​](#type-2 "Direct link to type")

`string`

##### bubbles?[​](#bubbles-2 "Direct link to bubbles?")

`boolean`

##### cancelable?[​](#cancelable-2 "Direct link to cancelable?")

`boolean`

#### Returns[​](#returns-3 "Direct link to Returns")

`void`

#### Deprecated[​](#deprecated-4 "Direct link to Deprecated")

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)

#### Inherited from[​](#inherited-from-20 "Direct link to Inherited from")

`CustomEvent.initEvent`

***

### preventDefault()[​](#preventdefault "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)

#### Returns[​](#returns-4 "Direct link to Returns")

`void`

#### Inherited from[​](#inherited-from-21 "Direct link to Inherited from")

`CustomEvent.preventDefault`

***

### stopImmediatePropagation()[​](#stopimmediatepropagation "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)

#### Returns[​](#returns-5 "Direct link to Returns")

`void`

#### Inherited from[​](#inherited-from-22 "Direct link to Inherited from")

`CustomEvent.stopImmediatePropagation`

***

### stopPropagation()[​](#stoppropagation "Direct link to 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](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)

#### Returns[​](#returns-6 "Direct link to Returns")

`void`

#### Inherited from[​](#inherited-from-23 "Direct link to Inherited from")

`CustomEvent.stopPropagation`
