Lines Matching defs:exception
586 PyErr_SetString(PyExc_TypeError, "invalid exception object");
780 - result() and exception() do not take a timeout argument and
781 raise an exception when the future isn't done yet.
839 the future is done and has an exception set, this exception is raised.
872 _asyncio.Future.exception
874 Return the exception that was set on this future.
876 The exception (or None if no exception was set) is returned only if
934 exception: object
937 Mark the future done and set an exception.
944 _asyncio_Future_set_exception(FutureObj *self, PyObject *exception)
948 return future_set_exception(self, exception);
1139 Done means either that a result / exception are available, or that the
1389 it erases the context exception value.
1404 _Py_IDENTIFIER(exception);
1419 /* Save the current exception, if any. */
1428 "%s exception was never retrieved", _PyType_Name(Py_TYPE(fut)));
1461 /* Restore the saved exception. */
1690 "instance exception may not have a separate value");
2154 it erases the context exception value.
2179 task will be cancelled: the exception might be caught and
2182 raise a different exception.
2187 terminates with a CancelledError exception (even if cancel()
2289 terminated by an exception, this returns the list of traceback
2357 exception: object
2362 _asyncio_Task_set_exception(TaskObj *self, PyObject *exception)
2439 /* Save the current exception, if any. */
2482 /* Restore the saved exception. */
2745 /* Some other exception; pop it and call Task.set_exception() */
2755 /* An exception in Task.set_exception() */
3024 break; /* exception raised */
3041 /* exception raised */