Home
last modified time | relevance | path

Searched refs:set_exception (Results 1 – 25 of 47) sorted by relevance

12

/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py67 def set_exception(self, exception): member in DuckFuture
164 fut.set_exception(Exception)
208 self.assertRaises(asyncio.InvalidStateError, f.set_exception, None)
221 self.assertRaises(asyncio.InvalidStateError, f.set_exception, None)
231 f.set_exception, StopIteration)
233 f.set_exception(exc)
239 self.assertRaises(asyncio.InvalidStateError, f.set_exception, None)
244 f.set_exception(RuntimeError)
291 f_exception.set_exception(exc)
346 f_exception.set_exception(RuntimeError())
[all …]
Dtest_streams.py205 stream.set_exception(ValueError())
374 stream.set_exception(ValueError())
528 stream.set_exception(ValueError())
537 stream.set_exception(exc)
545 stream.set_exception(ValueError())
562 stream.set_exception(RuntimeError('message'))
824 stream.set_exception(exc)
Dtest_buffered_proto.py23 self.con_lost_fut.set_exception(exc)
Dtest_tasks.py1450 task.set_exception(ValueError())
1744 inner.set_exception(exc)
2478 Future.set_exception(task, MyExc())
2851 b.set_exception(exc)
2859 e.set_exception(RuntimeError())
2871 c.set_exception(exc)
2875 d.set_exception(exc2)
2969 e.set_exception(RuntimeError())
2980 b.set_exception(zde)
2987 f.set_exception(rte)
/external/python/cpython3/Lib/asyncio/
Dtasks.py136 def set_exception(self, exception): member in Task
230 super().set_exception(futures.CancelledError())
236 super().set_exception(exc)
238 super().set_exception(exc)
680 outer.set_exception(exc)
685 outer.set_exception(exc)
709 outer.set_exception(futures.CancelledError())
788 outer.set_exception(exc)
810 future.set_exception(exc)
Dwindows_events.py81 def set_exception(self, exception): member in _OverlappedFuture
82 super().set_exception(exception)
155 def set_exception(self, exception): member in _BaseWaitHandleFuture
157 super().set_exception(exception)
182 def set_exception(self, exception): member in _WaitCancelFuture
183 super().set_exception(exception)
672 f.set_exception(e)
746 f.set_exception(e)
Dstreams.py198 waiter.set_exception(exc)
246 self._stream_reader.set_exception(exc)
251 self._closed.set_exception(exc)
393 def set_exception(self, exc): member in StreamReader
400 waiter.set_exception(exc)
Dfutures.py239 def set_exception(self, exception): member in Future
300 concurrent.set_exception(exception)
320 dest.set_exception(exception)
Dselector_events.py371 fut.set_exception(exc)
405 fut.set_exception(exc)
438 fut.set_exception(exc)
479 fut.set_exception(exc)
499 fut.set_exception(exc)
529 fut.set_exception(exc)
888 self._empty_waiter.set_exception(exc)
915 self._empty_waiter.set_exception(
Dunix_events.py388 fut.set_exception(err)
391 fut.set_exception(exc)
394 fut.set_exception(exc)
Dsubprocess.py90 reader.set_exception(exc)
Dbase_subprocess.py188 waiter.set_exception(exc)
/external/libcxx/src/
Dfuture.cpp112 __assoc_sub_state::set_exception(exception_ptr __p) in set_exception() function in __assoc_sub_state
211 __state_->set_exception(make_exception_ptr( in ~promise()
236 promise<void>::set_exception(exception_ptr __p) in set_exception() function in promise
240 __state_->set_exception(__p); in set_exception()
/external/libcxx/test/libcxx/thread/futures/futures.promise/
Dset_exception.pass.cpp42 p.set_exception(std::exception_ptr()); in main()
51 p.set_exception(std::exception_ptr()); in main()
/external/libcxx/test/std/thread/futures/futures.promise/
Dset_exception.pass.cpp29 p.set_exception(std::make_exception_ptr(3)); in main()
41 p.set_exception(std::make_exception_ptr(3)); in main()
/external/libcxx/test/std/thread/futures/futures.shared_future/
Dget.pass.cpp35 p.set_exception(std::make_exception_ptr(3)); in func2()
50 p.set_exception(std::make_exception_ptr(3.5)); in func4()
62 p.set_exception(std::make_exception_ptr('c')); in func6()
/external/libcxx/test/std/thread/futures/futures.unique_future/
Dget.pass.cpp35 p.set_exception(std::make_exception_ptr(3)); in func2()
50 p.set_exception(std::make_exception_ptr(3.5)); in func4()
62 p.set_exception(std::make_exception_ptr('c')); in func6()
/external/python/cpython3/Lib/concurrent/futures/
Dthread.py59 self.future.set_exception(exc)
196 work_item.future.set_exception(BrokenThreadPool(self._broken))
Dprocess.py168 work_item.future.set_exception(e)
386 work_item.future.set_exception(bpe)
410 work_item.future.set_exception(result_item.exception)
/external/libcxx/include/
Dfuture80 void set_exception(exception_ptr p);
109 void set_exception(exception_ptr p);
137 void set_exception(exception_ptr p);
578 void set_exception(exception_ptr __p);
896 this->set_exception(current_exception());
944 this->set_exception(current_exception());
991 this->set_exception(current_exception());
1047 this->set_exception(current_exception());
1411 void set_exception(exception_ptr __p);
1446 __state_->set_exception(make_exception_ptr(
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_metadata_code_details_test.py157 def set_exception(self): member in _Servicer
519 self._servicer.set_exception()
541 self._servicer.set_exception()
565 self._servicer.set_exception()
589 self._servicer.set_exception()
/external/python/cpython3/Doc/library/
Dasyncio-future.rst94 :meth:`set_exception` method, this method raises the exception.
109 .. method:: set_exception(exception)
122 :meth:`set_exception` calls.
/external/antlr/runtime/Cpp/include/
Dantlr3recognizersharedstate.hpp245 void set_exception( ExceptionBaseType* exception );
/external/python/futures/concurrent/futures/
Dprocess.py214 work_item.future.set_exception(result_item.exception)
/external/python/futures/
Dtest_futures.py555 f.set_exception(Exception('test'))
615 f.set_exception(Exception('test'))

12