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:
Allard Hoeve 2015-04-24 15:37:42 +02:00
parent 3113e8e5f0
commit 9a794beb1e

View File

@ -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.