class_docstr: Thread subclass that captures unhandled exceptions.
class_docstr_tok: ["Thread","subclass","that","captures","unhandled","exceptions","."]
code: def __init__(
      self,
      group=None,
      target=None,
      name=None,
      args=(),
      kwargs=None,
      *,
      daemon=None,
  ):
      super().__init__(
          group=group,
          target=target,
          name=name,
          args=args,
          kwargs=kwargs,
          daemon=daemon,
      )
      self._unhandled_exception: Optional[BaseException] = None
  
file_path: streamlit/lib/tests/exception_capturing_thread.py
imports: import threading
  from typing import Any, Callable, Optional
  from streamlit.runtime.forward_msg_queue import ForwardMsgQueue
  from streamlit.runtime.memory_uploaded_file_manager import MemoryUploadedFileManager
  from streamlit.runtime.scriptrunner import ScriptRunContext, add_script_run_ctx
  from streamlit.runtime.state import SafeSessionState, SessionState
label_desc: Use image node_id 1 to create a new ExceptionCapturingThread object from inherited base classes: threading with example: obj = ExceptionCapturingThread(group, target, name, args, kwargs)