Liking cljdoc? Tell your friends :D

web.PromiseRejectionEvent

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

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

constructorcljs

Constructor.

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

The PromiseRejectionEvent() constructor also inherits parameters from web.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.PromiseRejectionEvent events that user agents can actually fire). options An web.Object specifying details about the rejection which occurred:

promise The web.Promise that was rejected. reason Any value or web.Object which represents the reason the promise was rejected. This can be anything from a numeric error code to an error 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.PromiseRejectionEvent`, which represents events fired when a JavaScript `web.Promise` is rejected.

The PromiseRejectionEvent() constructor also inherits parameters from `web.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.PromiseRejectionEvent` events that user agents can actually fire).
options
An `web.Object` specifying details about the rejection which occurred:

promise
The `web.Promise` that was rejected.
reason
Any value or `web.Object` which represents the reason the promise was rejected. This can be anything from a numeric error code to an error `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.PromiseRejectionEvent interface's promise read-only indicates the JavaScript web.Promise which was rejected. You examine the event's web.PromiseRejectionEvent.reason property learn why the promise was rejected.

promise = PromiseRejectionEvent.promise

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

Property.

The `web.PromiseRejectionEvent` interface's promise read-only
indicates the JavaScript `web.Promise` which was rejected. You
examine the event's `web.PromiseRejectionEvent.reason` property
learn 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 web.PromiseRejection property reason read-only is any JavaScript value or web.Object which provides the reason into web.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 `web.PromiseRejection` property reason read-only
is any JavaScript value or `web.Object` which provides the reason
into `web.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.PromiseRejectionEvent interface's promise read-only indicates the JavaScript web.Promise which was rejected. You examine the event's web.PromiseRejectionEvent.reason property learn why the promise was rejected.

promise = PromiseRejectionEvent.promise

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

Property.

The `web.PromiseRejectionEvent` interface's promise read-only
indicates the JavaScript `web.Promise` which was rejected. You
examine the event's `web.PromiseRejectionEvent.reason` property
learn 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 web.PromiseRejection property reason read-only is any JavaScript value or web.Object which provides the reason into web.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 `web.PromiseRejection` property reason read-only
is any JavaScript value or `web.Object` which provides the reason
into `web.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