Browse Source

docs: correct RequestValidationError inheritance detail

pull/14410/head
Mohammedsohil Shaikh 8 months ago
committed by GitHub
parent
commit
4a7e63ce3d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/docs/tutorial/handling-errors.md

2
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 <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>. `RequestValidationError` is a **FastAPI-specific exception** (it inherits from `fastapi.exceptions.ValidationException`). It is **not** a sub-class of Pydantic's <a href="https://docs.pydantic.dev/latest/concepts/models/#error-handling" class="external-link" target="_blank">`ValidationError`</a>.
**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. **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.

Loading…
Cancel
Save