Assertion: promise | /r/HasProperty | rejected
Facets:
Source sentences:
text: If it rejects, it is rejected with the reason from the first promise in the iterable that was rejected.
text: If it rejects, it is rejected with the reason from the first promise that was rejected.
text: The second argument of .then is a function that runs when the promise is rejected, and receives the error.
text: The promise returned by tossASix is rejected when the toss is not a six, so the rejection handler is called with the actual toss.
text: The Promises/A+ specification demands that if a promise is rejected or an error is thrown in a rejection handler, it should be handled by a rejection handler that is “downstream” from the source.
text: This indicates that the promise is rejected.
text: If the promise was rejected, the failure callback will be called.
text: Once a promise is rejected or fulfilled, this status gets permanently associated with it.
text: The second one will be called if the promise was rejected.
text: registers a handler that is called when the promise is rejected.
text: If the promise is rejected, this function is invoked with the rejection reason of the promise as its only argument, and the outcome of the function determines the state of the new promise returned by the then method.
text: onRejected Optional A Function called if the Promise is rejected.
text: “reason” is a value that indicates why a promise was rejected.
text: it must not be called before promise is rejected.
text: If/when promise is rejected, all respective onRejected callbacks must execute in the order of their originating calls to then .
text: If the other promise is rejected, this will happen unnoticed instead of being propagated to the new promise (where it would get handled) - and the new promise stays forever pending, which can induce leaks.
text: Rejection: When a promise cannot be fulfilled, a promise is 'rejected' which invokes the errbacks that are waiting and remembers the error that was rejected for future errbacks that are attached.
text: It will never be fulfilled if it has been rejected or rejected if it has been fulfilled.
text: If a promise is rejected and an errback is attached after the rejection, it will be executed with the rejected value.
text: If a promise is rejected, then every subsequent promise in the chain will be rejected, until one is reached with an error callback.