mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Remove mention of Django's built-in ValidationError in docstring
The `exception_handler` does not actually handle django.core.exceptions.ValidationError, so remove any mention of it. This closes #2872
This commit is contained in:
parent
3113e8e5f0
commit
9a794beb1e
|
@ -54,8 +54,7 @@ def exception_handler(exc, context):
|
|||
Returns the response that should be used for any given exception.
|
||||
|
||||
By default we handle the REST framework `APIException`, and also
|
||||
Django's built-in `ValidationError`, `Http404` and `PermissionDenied`
|
||||
exceptions.
|
||||
Django's built-in `Http404` and `PermissionDenied` exceptions.
|
||||
|
||||
Any unhandled exceptions may return `None`, which will cause a 500 error
|
||||
to be raised.
|
||||
|
|
Loading…
Reference in New Issue
Block a user