From 4a7e63ce3dd311599fbb9e51389bc9296f0afcb5 Mon Sep 17 00:00:00 2001 From: Mohammedsohil Shaikh <79828293+sohil-hub@users.noreply.github.com> Date: Tue, 25 Nov 2025 22:54:25 +0530 Subject: [PATCH] docs: correct RequestValidationError inheritance detail --- docs/en/docs/tutorial/handling-errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/docs/tutorial/handling-errors.md b/docs/en/docs/tutorial/handling-errors.md index 53501837c..93f935e8d 100644 --- a/docs/en/docs/tutorial/handling-errors.md +++ b/docs/en/docs/tutorial/handling-errors.md @@ -162,7 +162,7 @@ These are technical details that you might skip if it's not important for you no /// -`RequestValidationError` is a sub-class of Pydantic's `ValidationError`. +`RequestValidationError` is a **FastAPI-specific exception** (it inherits from `fastapi.exceptions.ValidationException`). It is **not** a sub-class of Pydantic's `ValidationError`. **FastAPI** uses it so that, if you use a Pydantic model in `response_model`, and your data has an error, you will see the error in your log.