Lines Matching refs:exception
145 If an exception is thrown in an `$onRejected` callback, subsequent
146 `$onRejected` callbacks are invoked with the thrown exception as the reason.
179 If an exception is not thrown in a `$onRejected` callback and the callback
204 wait function does not deliver a value, then an exception is thrown. The wait
217 If an exception is encountered while invoking the wait function of a promise,
218 the promise is rejected with the exception and the exception is thrown.
225 $promise->wait(); // throws the exception.
237 Calling `wait` on a promise that has been rejected will throw an exception. If
240 can be obtained by calling the `getReason` method of the exception.
248 > PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The pr…
255 promise if it was fulfilled or throw an exception if it was rejected). This is
265 // This will not throw an exception. It simply ensures the promise has
328 fulfilled promise or if an exception is thrown if the promise is rejected.