Lines Matching refs:rejection
50 * [Rejection forwarding](#rejection-forwarding)
51 * [Mixed resolution and rejection forwarding](#mixed-resolution-and-rejection-forwarding)
168 and an associated value, or rejection (failure) and an associated reason.
187 or rejection value. Returns a new promise for the transformed result.
189 The `then()` method registers new fulfilled, rejection and progress handlers
258 Registers a rejection handler for promise. It is a shortcut for:
405 with that thrown exception as the rejection reason.
498 If `$promiseOrValue` is a value, it will be the rejection value of the
505 throwing an exception. For example, it allows you to propagate a rejection with
539 rejected. The rejection value will be an array of all rejection reasons.
557 reject). The rejection value will be an array of
558 `(count($promisesOrValues) - $howMany) + 1` rejection reasons.
681 Similarly, when you handle a rejected promise, to propagate the rejection,
693 // Propagate the rejection
697 // Can also propagate by returning another rejection
709 #### Mixed resolution and rejection forwarding
725 // Handle the rejection, and don't propagate.
740 In the same way as resolution and rejection handlers, your progress handler
790 error (either a thrown exception or returned rejection) escapes the
811 // Here we provide no rejection handler. If the promise returned has been
821 // Here we provide a rejection handler which will either throw while debugging
838 Note that if a rejection value is not an instance of `\Exception`, it will be
841 You can get the original rejection reason by calling `$exception->getReason()`.