๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ builtins โ€บ exceptions.html
Built-in Exceptions โ€” Python 3.14.7 documentation
They are part of the exception hierarchy so they can be handled with except like all other exceptions. In addition, they are recognised by except*, which matches their subgroups based on the types of the contained exceptions.
๐ŸŒ
Profound Academy
profound.academy โ€บ python-mid โ€บ exception-hierarchy-phonbKOpXJ362GhumAsG
Exception Hierarchy โ€ข Intermediate Python
January 20, 2025 - This means that every exception in Python is an instance of BaseException or one of its subclasses. The BaseException class is the top-level class in the exception hierarchy. It provides some common methods that all exceptions can use, such ...
๐ŸŒ
Medium
martinxpn.medium.com โ€บ exception-hierarchy-python-58-100-days-of-python-9d8585e6569b
Exception Hierarchy Python (58/100 Days of Python) | by Martin Mirakyan | Medium
April 10, 2023 - This means that every exception in Python is an instance of BaseException or one of its subclasses. The BaseException class is the top-level class in the exception hierarchy. It provides some common methods that all exceptions can use, such ...
๐ŸŒ
airbrake
docs.airbrake.io โ€บ home โ€บ blog โ€บ python โ€บ the python exception class hierarchy
The Python Exception Class Hierarchy - Airbrake Docs
November 2, 2017 - Exception is the most commonly-inherited exception type (outside of the true base class of BaseException). In addition, all exception classes that are considered errors are subclasses of the Exception class. In general, any custom exception class you create in your own code should inherit from Exception. The Exception class contains many direct child subclasses that handle most Python errors, so weโ€™ll briefly go over each below:
๐ŸŒ
Medium
gokulapriyan.medium.com โ€บ the-pythonic-path-exploring-the-exception-hierarchy-in-python-04759e0b0219
โ€œThe Pythonic Path: Exploring the Exception Hierarchy in Pythonโ€ | by Gokulapriyan | Medium
August 28, 2024 - Definition: Exceptions are Python objects that represent errors. Python has a well-defined hierarchy for handling these exceptions. BaseException (Root of all exceptions) 1. SystemExit 2. KeyboardInterrupt 3.
๐ŸŒ
Embedded Inventor
embeddedinventor.com โ€บ home โ€บ hierarchy of exceptions in python
Hierarchy of Exceptions in Python
December 27, 2023 - ExceptionGroup [BaseExceptionGroup]: It extends the Exception group and can wrap subclasses of the Exception class. The ExceptionGroup constructor raises a TypeError if any contained exception is not an Exception subclass. ImportError: As the name states, this is raised when there is some problem trying to import a module. Related: 6 Common Mistakes While Importing Modules & Their Fixes! (Python)
๐ŸŒ
Python
docs.python.org โ€บ 3.3 โ€บ library โ€บ exceptions.html
5. Built-in Exceptions โ€” Python 3.3.7 documentation
The class hierarchy for built-in exceptions is: BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- ArithmeticError | +-- FloatingPointError | +-- OverflowError | +-- ZeroDivisionError +-- AssertionError +-- AttributeError +-- BufferError +-- EOFError +-- ImportError +-- LookupError | +-- IndexError | +-- KeyError +-- MemoryError +-- NameError | +-- UnboundLocalError +-- OSError | +-- BlockingIOError | +-- ChildProcessError | +-- ConnectionError | | +-- BrokenPipeError | | +-- ConnectionAbortedError | | +-- ConnectionRefusedError | | +-- Con
๐ŸŒ
Real Python
realpython.com โ€บ ref โ€บ builtin-exceptions โ€บ baseexception
BaseException | Pythonโ€™s Built-in Exceptions โ€“ Real Python
In Python, BaseException is a built-in exception that serves as the base class for all exceptions. Itโ€™s the root of the exception class hierarchy, meaning that all other exceptions are derived from this class.
๐ŸŒ
Real Python
realpython.com โ€บ python-built-in-exceptions
Python's Built-in Exceptions: A Walkthrough With Examples โ€“ Real Python
March 18, 2026 - Python passes them along to your application. In most cases, youโ€™ll be catching these exceptions but not raising them in your code. Warnings: They provide warnings about unexpected events or actions that could result in errors later. These particular types of exceptions donโ€™t represent errors. Ignoring them can cause you issues later, but you can ignore them. ... BaseException โ”œโ”€โ”€ BaseExceptionGroup โ”œโ”€โ”€ GeneratorExit โ”œโ”€โ”€ KeyboardInterrupt โ”œโ”€โ”€ SystemExit โ””โ”€โ”€ Exception โ”œโ”€โ”€ ArithmeticError โ”‚ โ”œโ”€โ”€ FloatingPointError โ”‚ โ”œโ”€โ”€ OverflowError โ”‚ โ””
Find elsewhere
๐ŸŒ
Runebook.dev
runebook.dev โ€บ en โ€บ docs โ€บ python โ€บ library โ€บ exceptions โ€บ BaseException
Understanding BaseException: The Root of Python's Error Hierarchy
In Python, BaseException is the root of the entire exception hierarchy. Think of it as the great-great-grandparent of every single built-in exception
๐ŸŒ
Python Tutorial
pythontutorial.net โ€บ home โ€บ python oop โ€บ python exceptions
Python Exceptions
March 28, 2025 - In Python, exceptions are objects of the exception classes. All exception classes are the subclasses of the BaseException class. However, almost all built-in exception classes inherit from the Exception class, which is the subclass of the BaseException class: This page shows a complete class hierarchy ...
๐ŸŒ
Python
docs.python.org โ€บ 3.2 โ€บ library โ€บ exceptions.html
5. Built-in Exceptions โ€” Python v3.2.6 documentation
The class hierarchy for built-in exceptions is: BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- ArithmeticError | +-- FloatingPointError | +-- OverflowError | +-- ZeroDivisionError +-- AssertionError +-- AttributeError +-- BufferError +-- EnvironmentError | +-- IOError | +-- OSError | +-- WindowsError (Windows) | +-- VMSError (VMS) +-- EOFError +-- ImportError +-- LookupError | +-- IndexError | +-- KeyError +-- MemoryError +-- NameError | +-- UnboundLocalError +-- ReferenceError +-- RuntimeError | +-- NotImplementedError +-- SyntaxError
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ built-exceptions-python
Python Built-in Exceptions - GeeksforGeeks
This class is the root of Python's exception hierarchy. All other exceptions directly or indirectly inherit from it. While it is rarely used directly in code, it is important because it forms the foundation of Pythonโ€™s error-handling system.
Published: April 18, 2026
๐ŸŒ
CodeSignal
codesignal.com โ€บ learn โ€บ courses โ€บ debugging-code-using-python โ€บ lessons โ€บ navigating-through-python-exceptions-a-beginners-guide
Navigating Through Python Exceptions: A Beginner's Guide
Much like a family tree, Python exceptions form an inheritance hierarchy. All exceptions are derived from a built-in BaseException class. Hence, specific exceptions inherit properties from the more general ones, forming a hierarchy.
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ exceptions.html
Built-in Exceptions โ€” Python 3.14.6 documentation
They are part of the exception hierarchy so they can be handled with except like all other exceptions. In addition, they are recognised by except*, which matches their subgroups based on the types of the contained exceptions.
๐ŸŒ
Hrekov
hrekov.com โ€บ blog โ€บ python-exception-hierarchy
Understanding the Python Exception Hierarchy | Backend APIs, Web Apps, Bots & Automation | Hrekov
May 10, 2026 - ... Most standard exceptions you encounter belong to one of a few major branches under the main Exception class. The most important takeaway from the hierarchy is that catching a parent exception class will also catch all its descendants.
๐ŸŒ
Python
docs.python.org โ€บ 3.4 โ€บ library โ€บ exceptions.html
5. Built-in Exceptions โ€” Python 3.4.10 documentation
The class hierarchy for built-in exceptions is: BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- ArithmeticError | +-- FloatingPointError | +-- OverflowError | +-- ZeroDivisionError +-- AssertionError +-- AttributeError +-- BufferError +-- EOFError +-- ImportError +-- LookupError | +-- IndexError | +-- KeyError +-- MemoryError +-- NameError | +-- UnboundLocalError +-- OSError | +-- BlockingIOError | +-- ChildProcessError | +-- ConnectionError | | +-- BrokenPipeError | | +-- ConnectionAbortedError | | +-- ConnectionRefusedError | | +-- Con