Search across all documentation pages
11 pages in this section.
Why exceptions and logging are two separate channels - one for control flow, one for observability - and how the exception hierarchy, chaining, and exception groups all serve the first channel while the logging module serves the second - the mental model behind every other page in this section.
Learn Python exception handling with try, except, else, and finally clauses. Explore specific type catching, re-raising, and cleanup.
Learn how to raise and chain exceptions in Python to translate low-level failures into domain errors while preserving context and tracebacks.
Design custom exception hierarchies in Python to group related errors. Learn how to create meaningful, catchable exception types for robust error handling.
Learn how to implement robust retry mechanisms for transient failures using Python's tenacity library, including exponential backoff and jitter.
Learn to use Python's logging module to route log records from loggers through handlers to outputs like consoles and files.
Understand Python's warnings module to signal recoverable issues and API deprecations. Learn to configure filters and use DeprecationWarning.
Learn best practices for handling exceptions and logging in Python production services. Configure logging, catch specific errors, and use structured logs.
A single-page roundup of every highlight bullet from the 10 pages in the Errors & Logging section, grouped by source page so you can scan all 58 takeaways without opening each article individually.