SystemExitSystemExit
Raised by sys.exit() to request program termination.
KeyboardInterruptThe user pressed Ctrl+C to interrupt the running program.
The user pressed Ctrl+C (SIGINT) to stop the program. This is intentional user action to abort a running process.
Handle gracefully with try-except KeyboardInterrupt for cleanup before exit. Use signal.signal(signal.SIGINT, handler) for custom interrupt handling. Ensure resources (files, connections) are released in finally blocks.
SystemExitRaised by sys.exit() to request program termination.
TypeErrorAn operation or function was applied to an object of an inappropriate type.
ZeroDivisionErrorA division or modulo operation was attempted with zero as the divisor.
StopAsyncIterationRaised by an async iterator's __anext__() method to signal that iteration is complete.
BlockingIOErrorAn I/O operation would block on a non-blocking object.
ImportErrorAn import statement failed to find or load the specified module or name.