fastapi/docs_src/handling_errors
Michał Połtyn 42d4db860e
Add per-router exception handlers for APIRouter
Allow scoping exception handlers to specific routers instead of only
at the app level. Router-level handlers override app-level handlers
for routes within that router, with precedence: route > child router
> parent router > app-level middleware.
2026-03-06 14:20:39 +01:00
..
__init__.py Add missing tests for code examples (#14569) 2025-12-26 11:43:02 +01:00
tutorial001_py310.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
tutorial002_py310.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
tutorial003_py310.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
tutorial004_py310.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
tutorial005_py310.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
tutorial006_py310.py 📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 2026-02-12 14:19:43 +01:00
tutorial007_py310.py Add per-router exception handlers for APIRouter 2026-03-06 14:20:39 +01:00
tutorial008_py310.py Add per-router exception handlers for APIRouter 2026-03-06 14:20:39 +01:00