On this page
threading.ThreadError
Prev: threading.Thread | Up: threading | Next: threading.Timer
Rel: threading.active_count, threading.Barrier, threading.BoundedSemaphore, threading.BrokenBarrierError
Ref: docs.python.org โ threading.ThreadError
Tags: #public #python3 #stdlib #threading
Import
import threading
from threading import ThreadError
Signature & Overview
threading.ThreadError(...)
Unspecified run-time error.
Methods & Attributes
ThreadError.add_note(self, note, /)โ Add a note to the exceptionThreadError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import threading
# Raised on low-level thread errors (same as RuntimeError in modern Python)
assert issubclass(threading.ThreadError, Exception)
Gotchas
- Catch
RuntimeErrorfor mostthreadingAPI errors: Starting a thread twice or joining the current thread raisesRuntimeError.
REPL Inspect
from threading import ThreadError
help(ThreadError)
Linked from
Related notes
- tuts/python3/stdlib_module/threading/Thread Linked here; links to this page; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/Timer Linked here; links to this page; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/threading/active_count Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/Barrier Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/BoundedSemaphore Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/BrokenBarrierError Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/Condition shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/current_thread shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/enumerate shared tags: #stdlib, #threading