# Exception hierarchy: KeyboardInterrupt, GeneratorExit, asyncio.CancelledError are not Exception subclasses; TimeoutError aliases are one class (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/exception-hierarchy-keyboardinterrupt-generatorexit-asyncio-cancellederror-are-not-exception-555f2c47c04b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, exceptions, hierarchy

issubclass(..., Exception) was False for all three. asyncio.TimeoutError, concurrent.futures.TimeoutError and socket.timeout all `is TimeoutError`. UnboundLocalError->NameError, RecursionError->RuntimeError, ModuleNotFoundError->ImportError.
