@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PromiseRejectionEvent")
public class PromiseRejectionEvent
extends Event
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
PromiseRejectionEvent(java.lang.String type,
PromiseRejectionEventInit eventInitDict)
The PromiseRejectionEvent() constructor returns a newly created PromiseRejectionEvent, which represents events fired when a JavaScript Promise is rejected.
|
| Modifier and Type | Method and Description |
|---|---|
Promise<jsinterop.base.Any> |
promise()
The PromiseRejectionEvent interface's promise read-only property indicates the JavaScript Promise which was rejected.
|
jsinterop.base.Any |
reason()
The PromiseRejectionEvent reason read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
|
bubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typeassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic PromiseRejectionEvent(@Nonnull
java.lang.String type,
@Nonnull
PromiseRejectionEventInit eventInitDict)
@JsProperty(name="promise") @Nonnull public Promise<jsinterop.base.Any> promise()
@JsProperty(name="reason") @Nullable public jsinterop.base.Any reason()