Liking cljdoc? Tell your friends :D

web.dom.PromiseRejectionEvent

The PromiseRejectionEvent interface represents events which are to the global script context when JavaScript js.Promises are

The PromiseRejectionEvent interface represents events which are
to the global script context when JavaScript `js.Promise`s are
raw docstring

constructorcljs

Constructor.

The PromiseRejectionEvent() constructor returns a newly created web.dom.PromiseRejectionEvent, which represents events fired when a JavaScript js.Promise is rejected.

The PromiseRejectionEvent() constructor also inherits parameters from Event().

type A string representing the name of the type of the PromiseRejectionEvent. This is case-sensitive and should be one of "rejectionhandled" or "unhandledrejection", to match the event names of the possible (non-synthetic) web.dom.PromiseRejectionEvent events that user agents can actually fire). options An js.Object specifying details about the rejection which occurred:

promise The js.Promise that was rejected. reason Any value or js.Object which represents the reason the promise was rejected. This can be anything from a numeric error code to an error web.dom.DOMString to an object which contains detailed information describing the situation resulting in the promise being rejected.

See also: https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/PromiseRejectionEvent

Constructor.

The PromiseRejectionEvent() constructor returns a newly created `web.dom.PromiseRejectionEvent`, which represents events fired when a JavaScript `js.Promise` is rejected.

The PromiseRejectionEvent() constructor also inherits parameters from `Event()`.


type
A string representing the name of the type of the PromiseRejectionEvent. This is case-sensitive and should be one of \"rejectionhandled\" or \"unhandledrejection\", to match the event names of the possible (non-synthetic) `web.dom.PromiseRejectionEvent` events that user agents can actually fire).
options
An `js.Object` specifying details about the rejection which occurred:

promise
The `js.Promise` that was rejected.
reason
Any value or `js.Object` which represents the reason the promise was rejected. This can be anything from a numeric error code to an error `web.dom.DOMString` to an object which contains detailed information describing the situation resulting in the promise being rejected.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/PromiseRejectionEvent`
sourceraw docstring

promisecljs

(promise this)

Property.

The web.dom.PromiseRejectionEvent interface's promise read-only indicates the JavaScript js.Promise which was rejected. You examine the event's PromiseRejectionEvent.reason property to why the promise was rejected.

promise = PromiseRejectionEvent.promise

See also: https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise

Property.

The `web.dom.PromiseRejectionEvent` interface's promise read-only
indicates the JavaScript `js.Promise` which was rejected. You
examine the event's `PromiseRejectionEvent.reason` property to
why the promise was rejected.

`promise = PromiseRejectionEvent.promise`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise`
sourceraw docstring

reasoncljs

(reason this)

Property.

The read-only PromiseRejection property reason read-only property any JavaScript value or js.Object which provides the reason into Promise.reject(). This in theory provides information why the promise was rejected.

reason = PromiseRejectionEvent.reason

See also: https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason

Property.

The read-only `PromiseRejection` property reason read-only property
any JavaScript value or `js.Object` which provides the reason
into `Promise.reject()`. This in theory provides information
why the promise was rejected.

`reason = PromiseRejectionEvent.reason`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason`
sourceraw docstring

set-promise!cljs

(set-promise! this val)

Property.

The web.dom.PromiseRejectionEvent interface's promise read-only indicates the JavaScript js.Promise which was rejected. You examine the event's PromiseRejectionEvent.reason property to why the promise was rejected.

promise = PromiseRejectionEvent.promise

See also: https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise

Property.

The `web.dom.PromiseRejectionEvent` interface's promise read-only
indicates the JavaScript `js.Promise` which was rejected. You
examine the event's `PromiseRejectionEvent.reason` property to
why the promise was rejected.

`promise = PromiseRejectionEvent.promise`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise`
sourceraw docstring

set-reason!cljs

(set-reason! this val)

Property.

The read-only PromiseRejection property reason read-only property any JavaScript value or js.Object which provides the reason into Promise.reject(). This in theory provides information why the promise was rejected.

reason = PromiseRejectionEvent.reason

See also: https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason

Property.

The read-only `PromiseRejection` property reason read-only property
any JavaScript value or `js.Object` which provides the reason
into `Promise.reject()`. This in theory provides information
why the promise was rejected.

`reason = PromiseRejectionEvent.reason`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close